@addozhang/dsh-discord 0.6.5 → 0.6.6
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 +2 -2
- package/README.zh.md +2 -2
- package/docs/plugin-detail.en.md +35 -0
- package/docs/plugin-detail.zh.md +35 -0
- package/icon.svg +9 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +18 -11
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Two channels ship in parallel, each following the dsh host surface it was verifi
|
|
|
40
40
|
|
|
41
41
|
| Channel | Adapter | dsh CLI | Install |
|
|
42
42
|
|---|---|---|---|
|
|
43
|
-
| **stable (0.2.1 line)** | `0.6.
|
|
43
|
+
| **stable (0.2.1 line)** | `0.6.6` — npm `latest` | `0.2.1-rc.3`+ — npm `latest`/`next` | `dsh plugin --profile web add @addozhang/dsh-discord` |
|
|
44
44
|
| **next (0.2.1 line)** | `>=0.6.5-rc.1` — npm `next` | `0.2.1-rc.3`+ — npm `latest`/`next` | `dsh plugin --profile web add @addozhang/dsh-discord@next` |
|
|
45
45
|
| Legacy (0.1.7 line) | `0.5.0` — exact version | `0.1.7-rc.1` — exact version | `dsh plugin --profile web add @addozhang/dsh-discord@0.5.0` |
|
|
46
46
|
|
|
@@ -153,7 +153,7 @@ The settings card exposes the three high-frequency fields (guild allowlist, auto
|
|
|
153
153
|
|
|
154
154
|
```sh
|
|
155
155
|
pnpm install --ignore-scripts
|
|
156
|
-
pnpm test #
|
|
156
|
+
pnpm test # 825 tests incl. gateway/REST twin E2E
|
|
157
157
|
pnpm typecheck
|
|
158
158
|
pnpm lint
|
|
159
159
|
pnpm build # lib + client bundle
|
package/README.zh.md
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
| 通道 | 适配器 | dsh CLI | 安装命令 |
|
|
42
42
|
|---|---|---|---|
|
|
43
|
-
| **stable(0.2.1 线)** | `0.6.
|
|
43
|
+
| **stable(0.2.1 线)** | `0.6.6` — npm `latest` | `0.2.1-rc.3`+ — npm `latest`/`next` | `dsh plugin --profile web add @addozhang/dsh-discord` |
|
|
44
44
|
| **next(0.2.1 线)** | `>=0.6.5-rc.1` — npm `next` | `0.2.1-rc.3`+ — npm `latest`/`next` | `dsh plugin --profile web add @addozhang/dsh-discord@next` |
|
|
45
45
|
| 旧线(0.1.7) | `0.5.0` — 精确版本号 | `0.1.7-rc.1` — 精确版本号 | `dsh plugin --profile web add @addozhang/dsh-discord@0.5.0` |
|
|
46
46
|
|
|
@@ -154,7 +154,7 @@ dsh-discord:
|
|
|
154
154
|
|
|
155
155
|
```sh
|
|
156
156
|
pnpm install --ignore-scripts
|
|
157
|
-
pnpm test #
|
|
157
|
+
pnpm test # 825 tests incl. gateway/REST twin E2E
|
|
158
158
|
pnpm typecheck
|
|
159
159
|
pnpm lint
|
|
160
160
|
pnpm build # lib + client bundle
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Discord Adapter · turn a Discord server into a DeepSeek Harness cockpit
|
|
2
|
+
|
|
3
|
+
@mention the bot in any channel and a session starts right there: replies stream into message threads with live tool activity; host approvals and questions surface as Discord buttons — click one and the agent keeps going; slash commands like `/permission` and `/model` tighten or relax control without switching back to the browser.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/addozhang/dsh-discord)
|
|
6
|
+
|
|
7
|
+
**If it works for you, please [star the repo](https://github.com/addozhang/dsh-discord)** — that directly decides how fast this plugin evolves.
|
|
8
|
+
|
|
9
|
+
## Highlights
|
|
10
|
+
|
|
11
|
+
- **@mention starts a session** — mention the bot in a channel or thread and the turn begins; streaming renders, tool lines, finalized transcripts, and zero replay across host restarts
|
|
12
|
+
- **Approval & question buttons** — host approval cards mirror into Discord as buttons; web and Discord race, first answer wins
|
|
13
|
+
- **9 slash commands** — `/project bind`, `/permission set`, `/model select`, `/stop`, `/steer`, `/queue remove`, `/session resume`, `/guild forget`, `/info`
|
|
14
|
+
- **deny-first, three tiers** — the guild allowlist is the outer boundary; member < workspace-admin < host-operator tighten step by step
|
|
15
|
+
- **Web settings card** — Settings → Discord: token, guild allowlist, bot language, auto-archive — all in one place
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
1. Install: `dsh plugin --profile <profile> add @addozhang/dsh-discord`
|
|
20
|
+
2. Web GUI → Settings → Discord, paste your bot token and save
|
|
21
|
+
3. Run `/project bind` in Discord, then @mention the bot and start chatting
|
|
22
|
+
|
|
23
|
+
## Compatibility
|
|
24
|
+
|
|
25
|
+
dsh ≥ 0.2.1 (adapter 0.6.x line). See the repo README for the host ↔ adapter version pairing table.
|
|
26
|
+
|
|
27
|
+
## Links
|
|
28
|
+
|
|
29
|
+
- Source & docs: <https://github.com/addozhang/dsh-discord>
|
|
30
|
+
- Issues: <https://github.com/addozhang/dsh-discord/issues>
|
|
31
|
+
- npm package: <https://www.npmjs.com/package/@addozhang/dsh-discord>
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
Finding it useful? [Leave a Star](https://github.com/addozhang/dsh-discord/stargazers) so I know it helped 🙌
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Discord 适配器 · 把 Discord 变成 DeepSeek Harness 的驾驶舱
|
|
2
|
+
|
|
3
|
+
在频道里 @bot 直接开聊:回复流式渲染成消息线程,工具调用实时可见;宿主的审批与提问以 Discord 按钮出现,点一下就继续干活;`/permission`、`/model` 等斜杠命令随时收紧或放宽控制——不用切回浏览器。
|
|
4
|
+
|
|
5
|
+
[](https://github.com/addozhang/dsh-discord)
|
|
6
|
+
|
|
7
|
+
**好用的话,欢迎去 [GitHub 仓库](https://github.com/addozhang/dsh-discord) 点个 ⭐ Star**——这直接决定这个插件的迭代速度。
|
|
8
|
+
|
|
9
|
+
## 亮点
|
|
10
|
+
|
|
11
|
+
- **@mention 即会话** — 频道或线程里 mention bot 立刻起 turn;流式渲染、工具行、成文归档,宿主重启零重放
|
|
12
|
+
- **审批 / 提问按钮流** — 宿主审批卡同步进 Discord,按钮裁决;Web 与 Discord 两端先答先得
|
|
13
|
+
- **9 个斜杠命令** — `/project bind`、`/permission set`、`/model select`、`/stop`、`/steer`、`/queue remove`、`/session resume`、`/guild forget`、`/info`
|
|
14
|
+
- **deny-first 三级授权** — guild 白名单是外层边界,member < workspace-admin < host-operator 逐级收紧
|
|
15
|
+
- **Web 设置卡片** — Settings → Discord:token、guild 白名单、Bot 语言、自动归档,一处配齐
|
|
16
|
+
|
|
17
|
+
## 快速开始
|
|
18
|
+
|
|
19
|
+
1. 安装:`dsh plugin --profile <profile> add @addozhang/dsh-discord`
|
|
20
|
+
2. Web GUI → Settings → Discord,粘贴 bot token 并保存
|
|
21
|
+
3. Discord 里 `/project bind` 绑定频道,然后 @bot 开聊
|
|
22
|
+
|
|
23
|
+
## 兼容性
|
|
24
|
+
|
|
25
|
+
dsh ≥ 0.2.1(适配器 0.6.x 线)。宿主与适配器的版本配对表见仓库 README。
|
|
26
|
+
|
|
27
|
+
## 链接
|
|
28
|
+
|
|
29
|
+
- 源码与文档:<https://github.com/addozhang/dsh-discord>
|
|
30
|
+
- 问题反馈:<https://github.com/addozhang/dsh-discord/issues>
|
|
31
|
+
- npm 包:<https://www.npmjs.com/package/@addozhang/dsh-discord>
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
喜欢这个插件?[点个 Star](https://github.com/addozhang/dsh-discord/stargazers) 让我知道它帮到了你 🙌
|
package/icon.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7 5h13a4 4 0 0 1 4 4v6a4 4 0 0 1-4 4h-6.2L9 23.5V19H7a4 4 0 0 1-4-4V9a4 4 0 0 1 4-4z" fill="#5865F2"/>
|
|
3
|
+
<rect x="7" y="8.5" width="12" height="2.2" rx="1.1" fill="#fff" opacity="0.95"/>
|
|
4
|
+
<rect x="7" y="12.6" width="8" height="2.2" rx="1.1" fill="#fff" opacity="0.7"/>
|
|
5
|
+
<path d="M24.5 15.5h5.5a4 4 0 0 1 4 4v4a4 4 0 0 1-4 4h-1.7v3.9l-4.6-3.9H20a4 4 0 0 1-4-4v-4a4 4 0 0 1 4-4h4.5z" fill="#41E1AC"/>
|
|
6
|
+
<circle cx="21.2" cy="21.5" r="1.3" fill="#fff"/>
|
|
7
|
+
<circle cx="25.2" cy="21.5" r="1.3" fill="#fff" opacity="0.85"/>
|
|
8
|
+
<circle cx="29.2" cy="21.5" r="1.3" fill="#fff" opacity="0.7"/>
|
|
9
|
+
</svg>
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Discord Adapter",
|
|
4
|
+
"description": "Bridge a Discord server into DeepSeek Harness: guild-allowlist channel bindings, @mention sessions with streaming renders, approval & question button flows, plus slash commands like /permission and /model.",
|
|
5
|
+
"detail": "docs/plugin-detail.en.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@addozhang/dsh-discord",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Discord adapter for DeepSeek Harness · DeepSeek Harness 的 Discord 适配器",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"icon": "./icon.svg",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"packageManager": "pnpm@11.0.8",
|
|
8
9
|
"engines": {
|
|
@@ -20,10 +21,16 @@
|
|
|
20
21
|
"default": "./lib/client.js"
|
|
21
22
|
},
|
|
22
23
|
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
24
|
+
"./locale/*.json": "./locale/*.json",
|
|
25
|
+
"./icon": "./icon.svg",
|
|
23
26
|
"./package.json": "./package.json"
|
|
24
27
|
},
|
|
25
28
|
"files": [
|
|
26
29
|
"lib",
|
|
30
|
+
"locale/*.json",
|
|
31
|
+
"docs/plugin-detail.zh.md",
|
|
32
|
+
"docs/plugin-detail.en.md",
|
|
33
|
+
"icon.svg",
|
|
27
34
|
"README.md",
|
|
28
35
|
"README.zh.md",
|
|
29
36
|
"LICENSE",
|
|
@@ -36,7 +43,7 @@
|
|
|
36
43
|
"build": "tsc -p tsconfig.build.json && tsc -p tsconfig.client.json && node scripts/build-client.mjs",
|
|
37
44
|
"clean": "rm -rf lib coverage",
|
|
38
45
|
"lint": "eslint . --max-warnings 0",
|
|
39
|
-
"test": "vitest run",
|
|
46
|
+
"test": "vitest run --testTimeout=20000 --hookTimeout=20000",
|
|
40
47
|
"test:watch": "vitest",
|
|
41
48
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
42
49
|
},
|
|
@@ -56,14 +63,14 @@
|
|
|
56
63
|
"@deepseek-ai/cordis": "^4.0.3"
|
|
57
64
|
},
|
|
58
65
|
"devDependencies": {
|
|
59
|
-
"@deepseek-ai/cordis": "4.0
|
|
60
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.
|
|
63
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
64
|
-
"@deepseek-ai/dsh-credentials": "0.2.
|
|
65
|
-
"@deepseek-ai/dsh-settings": "0.2.
|
|
66
|
-
"@deepseek-ai/dsh-storage-domain": "0.2.
|
|
66
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
67
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-storage-domain": "0.2.2-rc.1",
|
|
67
74
|
"@eslint/js": "9.39.1",
|
|
68
75
|
"@types/node": "24.10.1",
|
|
69
76
|
"@types/react": "18.3.1",
|
|
@@ -78,7 +85,7 @@
|
|
|
78
85
|
"vitest": "4.1.11"
|
|
79
86
|
},
|
|
80
87
|
"dependencies": {
|
|
81
|
-
"@deepseek-ai/schemastery": "3.
|
|
88
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
82
89
|
"zod": "^4.4.3"
|
|
83
90
|
},
|
|
84
91
|
"pnpm": {},
|