@xiangyixie/dsh-superagent 0.16.5 → 0.16.7
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/CHANGELOG.md +19 -0
- package/README.en.md +3 -3
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/lib/client.js +3 -54
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@ along with the next code release. A doc-only version leaves `lib/` and `bin/`
|
|
|
8
8
|
byte-identical to the version before it, and the pinned install line in the
|
|
9
9
|
README is updated to the version being released.
|
|
10
10
|
|
|
11
|
+
## 0.16.7 — 2026-11-17
|
|
12
|
+
|
|
13
|
+
### 变化
|
|
14
|
+
|
|
15
|
+
- **头栏只留边栏开合按钮。** 去掉「刷新」按钮和「已连接 / 流中断 / 连接中」
|
|
16
|
+
状态文字,清理对应的 `refresh` 动作、`conn` 状态与状态点样式;重连仍由
|
|
17
|
+
面板自动进行,初次加载失败时保留原有的错误页与「重试」。
|
|
18
|
+
|
|
19
|
+
## 0.16.6 — 2026-11-17
|
|
20
|
+
|
|
21
|
+
### 变化
|
|
22
|
+
|
|
23
|
+
- **删掉头栏的「新建会话」。** 单会话模型下它没有意义;`new-session` 动作、
|
|
24
|
+
新建图标一并移除。头栏只剩「刷新」和边栏开合两个按钮。
|
|
25
|
+
- **清掉前端最后的会话列表逻辑。** 删除 `/sessions` 拉取、`sessions` /
|
|
26
|
+
`sessionsReason` 状态和 `runs` 帧触发的列表刷新,前端不再有任何多会话
|
|
27
|
+
展示或切换路径;当前 `sessionId` 只用于发消息和取消回合。
|
|
28
|
+
- 右栏仍然只展示超级智能体调度的会话(目标 + 状态 + 运行中数量)。
|
|
29
|
+
|
|
11
30
|
## 0.16.5 — 2026-11-17
|
|
12
31
|
|
|
13
32
|
### 变化
|
package/README.en.md
CHANGED
|
@@ -36,12 +36,12 @@ Three steps. The desktop app and the CLI install the same plugin; each step says
|
|
|
36
36
|
|
|
37
37
|
### 1. Install
|
|
38
38
|
|
|
39
|
-
Desktop: **Plugins** → **Add plugin** → enter `@xiangyixie/dsh-superagent@0.16.
|
|
39
|
+
Desktop: **Plugins** → **Add plugin** → enter `@xiangyixie/dsh-superagent@0.16.7` → install.
|
|
40
40
|
|
|
41
41
|
CLI:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.16.
|
|
44
|
+
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.16.7
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
**Restart DSH** afterwards — plugins are loaded once at host startup. You can also add the [plugin index](https://raw.githubusercontent.com/LittleChenLiya/dsh-superagent/main/plugin-index.json) on the **Discover** page for one-click installs; upgrades are always remove-then-add.
|
|
@@ -1666,7 +1666,7 @@ appears to "hang" until the ignored-abort child returns.
|
|
|
1666
1666
|
|
|
1667
1667
|
| What you see | What it means | What to do |
|
|
1668
1668
|
| --- | --- | --- |
|
|
1669
|
-
| `superagent_*` tools do not exist | The bundle row is not mounted, or the host refused to load the plugin. | Run `--dump-config` and check for the `@xiangyixie/dsh-superagent` block; reinstall with `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.16.
|
|
1669
|
+
| `superagent_*` tools do not exist | The bundle row is not mounted, or the host refused to load the plugin. | Run `--dump-config` and check for the `@xiangyixie/dsh-superagent` block; reinstall with `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.16.7` and read the host log for `[dsh-superagent]` lines. |
|
|
1670
1670
|
| `Cannot find module .../lib/control.js` (or `watch.js` / `report.js` / `wizard.js`), or `[dsh-superagent] dsh-superagent failed to load because a file it imports is missing: ...` in the host log | The copy in that profile is incomplete — an `add` that was interrupted leaves a partial extraction. From 0.14.3 the entry point names the missing file itself. The published package is not the cause: every version ships all thirty-four `lib/` files. | Delete the plugin's directory under the profile's `node_modules` (scoped `@xiangyixie/dsh-superagent`, or unscoped `dsh-superagent` from an older tarball install) and run the same `add` command again, with the version number. Do not copy files in by hand. |
|
|
1671
1671
|
| `[error] the model provider rejected the API key` | The key env var is missing in the process that started the host. | Export `DEEPSEEK_API_KEY` (the default route) or the variable your route names, then restart `dsh`. |
|
|
1672
1672
|
| `MISSING_CREDENTIAL ... no API key for provider route "..."` | The profile's route has no credential in the environment. | Set the env var named for that route and restart. The error line names the route, so use that, not this page. |
|
package/README.md
CHANGED
|
@@ -36,12 +36,12 @@ dsh-superagent 把这件事接过去:你说一句目标,它负责拆、负
|
|
|
36
36
|
|
|
37
37
|
### 1. 装
|
|
38
38
|
|
|
39
|
-
桌面端:侧边栏 **插件** → **Add plugin** → 输入 `@xiangyixie/dsh-superagent@0.16.
|
|
39
|
+
桌面端:侧边栏 **插件** → **Add plugin** → 输入 `@xiangyixie/dsh-superagent@0.16.7` → 安装。
|
|
40
40
|
|
|
41
41
|
命令行:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.16.
|
|
44
|
+
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.16.7
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
装完**重启 DSH**(插件只在宿主启动时加载一次)。也可以从「发现」页添加[插件索引](https://raw.githubusercontent.com/LittleChenLiya/dsh-superagent/main/plugin-index.json)一键安装;升级一律先 `remove` 再 `add`。
|
|
@@ -1090,7 +1090,7 @@ SHA-256)。`--format html` 把同样的内容写成一个自包含
|
|
|
1090
1090
|
|
|
1091
1091
|
| 你看到的 | 含义 | 怎么办 |
|
|
1092
1092
|
| --- | --- | --- |
|
|
1093
|
-
| `superagent_*` 工具不存在 | bundle 行没挂上,或者宿主拒绝加载插件。 | 跑 `--dump-config` 查 `@xiangyixie/dsh-superagent` 块;用 `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.16.
|
|
1093
|
+
| `superagent_*` 工具不存在 | bundle 行没挂上,或者宿主拒绝加载插件。 | 跑 `--dump-config` 查 `@xiangyixie/dsh-superagent` 块;用 `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.16.7` 重装,并在宿主日志里找 `[dsh-superagent]` 行。 |
|
|
1094
1094
|
| `Cannot find module .../lib/control.js`(或 `watch.js` / `report.js` / `wizard.js`),或宿主日志里的 `[dsh-superagent] dsh-superagent failed to load because a file it imports is missing: ...` | 那个 profile 里的副本不完整——被中断的 `add` 会留下残缺的解包结果。0.14.3 起的入口会直接点名缺哪个文件。已发布的包不是原因:每个版本都带全部三十四个 `lib/` 文件。 | 删掉 profile 的 `node_modules` 下该插件的目录(带 scope 的 `@xiangyixie/dsh-superagent`,或旧 tarball 安装留下的无 scope 的 `dsh-superagent`),再用同一条 `add` 命令重装,并带上版本号。不要手工拷贝文件进去。 |
|
|
1095
1095
|
| `[error] the model provider rejected the API key` | 启动宿主的那个进程里缺 key 环境变量。 | 导出 `DEEPSEEK_API_KEY`(默认路由)或你那条路由声明的变量,然后重启 `dsh`。 |
|
|
1096
1096
|
| `MISSING_CREDENTIAL ... no API key for provider route "..."` | profile 的路由在环境里没有凭据。 | 设置该路由对应的环境变量并重启。错误行里写了路由名,以它为准,不要照本文。 |
|
package/README.zh.md
CHANGED
|
@@ -36,12 +36,12 @@ dsh-superagent 把这件事接过去:你说一句目标,它负责拆、负
|
|
|
36
36
|
|
|
37
37
|
### 1. 装
|
|
38
38
|
|
|
39
|
-
桌面端:侧边栏 **插件** → **Add plugin** → 输入 `@xiangyixie/dsh-superagent@0.16.
|
|
39
|
+
桌面端:侧边栏 **插件** → **Add plugin** → 输入 `@xiangyixie/dsh-superagent@0.16.7` → 安装。
|
|
40
40
|
|
|
41
41
|
命令行:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.16.
|
|
44
|
+
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.16.7
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
装完**重启 DSH**(插件只在宿主启动时加载一次)。也可以从「发现」页添加[插件索引](https://raw.githubusercontent.com/LittleChenLiya/dsh-superagent/main/plugin-index.json)一键安装;升级一律先 `remove` 再 `add`。
|
|
@@ -1090,7 +1090,7 @@ SHA-256)。`--format html` 把同样的内容写成一个自包含
|
|
|
1090
1090
|
|
|
1091
1091
|
| 你看到的 | 含义 | 怎么办 |
|
|
1092
1092
|
| --- | --- | --- |
|
|
1093
|
-
| `superagent_*` 工具不存在 | bundle 行没挂上,或者宿主拒绝加载插件。 | 跑 `--dump-config` 查 `@xiangyixie/dsh-superagent` 块;用 `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.16.
|
|
1093
|
+
| `superagent_*` 工具不存在 | bundle 行没挂上,或者宿主拒绝加载插件。 | 跑 `--dump-config` 查 `@xiangyixie/dsh-superagent` 块;用 `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.16.7` 重装,并在宿主日志里找 `[dsh-superagent]` 行。 |
|
|
1094
1094
|
| `Cannot find module .../lib/control.js`(或 `watch.js` / `report.js` / `wizard.js`),或宿主日志里的 `[dsh-superagent] dsh-superagent failed to load because a file it imports is missing: ...` | 那个 profile 里的副本不完整——被中断的 `add` 会留下残缺的解包结果。0.14.3 起的入口会直接点名缺哪个文件。已发布的包不是原因:每个版本都带全部三十四个 `lib/` 文件。 | 删掉 profile 的 `node_modules` 下该插件的目录(带 scope 的 `@xiangyixie/dsh-superagent`,或旧 tarball 安装留下的无 scope 的 `dsh-superagent`),再用同一条 `add` 命令重装,并带上版本号。不要手工拷贝文件进去。 |
|
|
1095
1095
|
| `[error] the model provider rejected the API key` | 启动宿主的那个进程里缺 key 环境变量。 | 导出 `DEEPSEEK_API_KEY`(默认路由)或你那条路由声明的变量,然后重启 `dsh`。 |
|
|
1096
1096
|
| `MISSING_CREDENTIAL ... no API key for provider route "..."` | profile 的路由在环境里没有凭据。 | 设置该路由对应的环境变量并重启。错误行里写了路由名,以它为准,不要照本文。 |
|
package/lib/client.js
CHANGED
|
@@ -77,8 +77,6 @@ window.__ModuleLoader__.load({
|
|
|
77
77
|
spark: ui?.IconSparkleRegular ?? ui?.IconSparkleMedium,
|
|
78
78
|
send: ui?.IconSendOutlineRegular ?? ui?.IconSendOutlineMedium,
|
|
79
79
|
plus: ui?.IconPlusOutlineRegular ?? ui?.IconPlusOutlineMedium,
|
|
80
|
-
newChat: ui?.IconNewChatOutlineRegular ?? ui?.IconNewChatOutlineMedium,
|
|
81
|
-
refresh: ui?.IconRefreshOutlineRegular ?? ui?.IconRefreshOutlineMedium,
|
|
82
80
|
stop: ui?.IconStopFillRegular ?? ui?.IconStopFillMedium,
|
|
83
81
|
clock: ui?.IconClockOutlineRegular ?? ui?.IconClockOutlineMedium,
|
|
84
82
|
check: ui?.IconCheckOutlineRegular ?? ui?.IconCheckOutlineMedium,
|
|
@@ -183,10 +181,6 @@ window.__ModuleLoader__.load({
|
|
|
183
181
|
.dsa-railtoggle{position:relative}
|
|
184
182
|
.dsa-railtoggle[aria-expanded=false] svg{transform:scaleX(-1)}
|
|
185
183
|
.dsa-badge{position:absolute;top:-2px;right:-2px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;background:var(--dsw-alias-state-business-primary,#4d6bfe);color:#fff;font-size:9px;line-height:14px;font-weight:600;text-align:center;box-sizing:border-box}
|
|
186
|
-
.dsa-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary,rgb(129,133,140))}
|
|
187
|
-
.dsa-dot{width:6px;height:6px;border-radius:50%;background:var(--dsw-alias-label-caption,rgb(129,133,140))}
|
|
188
|
-
.dsa-dot[data-state=live]{background:var(--dsw-alias-state-success-primary,#22c55e)}
|
|
189
|
-
.dsa-dot[data-state=warn]{background:var(--dsw-alias-state-warn-primary,#f59e0b)}
|
|
190
184
|
.dsa-body{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 0;grid-template-rows:minmax(0,1fr);flex:1;min-height:0;overflow:hidden;transition:grid-template-columns var(--ds-transition-duration-slow,240ms) var(--ds-ease-in-out,ease)}
|
|
191
185
|
.dsa-body[data-rail=open]{grid-template-columns:minmax(0,1fr) 360px}
|
|
192
186
|
.dsa-main{grid-column:1;grid-row:1;position:relative;display:flex;flex-direction:column;min-width:0;min-height:0}
|
|
@@ -328,9 +322,6 @@ window.__ModuleLoader__.load({
|
|
|
328
322
|
messages: [],
|
|
329
323
|
approvals: [],
|
|
330
324
|
runs: [],
|
|
331
|
-
sessions: [],
|
|
332
|
-
sessionsReason: '',
|
|
333
|
-
conn: 'connecting',
|
|
334
325
|
mode: 'queue',
|
|
335
326
|
toast: null,
|
|
336
327
|
canceling: false,
|
|
@@ -338,7 +329,6 @@ window.__ModuleLoader__.load({
|
|
|
338
329
|
typing: false,
|
|
339
330
|
sending: false,
|
|
340
331
|
currentId: null,
|
|
341
|
-
railBusy: false,
|
|
342
332
|
}
|
|
343
333
|
}
|
|
344
334
|
|
|
@@ -500,7 +490,7 @@ window.__ModuleLoader__.load({
|
|
|
500
490
|
if (!frame || typeof frame !== 'object') return model
|
|
501
491
|
switch (frame.type) {
|
|
502
492
|
case 'hello':
|
|
503
|
-
return { ...model, sessionId: frame.sessionId ?? model.sessionId, capabilities: frame.capabilities ?? model.capabilities
|
|
493
|
+
return { ...model, sessionId: frame.sessionId ?? model.sessionId, capabilities: frame.capabilities ?? model.capabilities }
|
|
504
494
|
case 'session':
|
|
505
495
|
if (!frame.sessionId || frame.sessionId === model.sessionId) return model
|
|
506
496
|
return { ...model, sessionId: frame.sessionId, messages: [], approvals: [], approvalBusy: {}, currentId: null, typing: false, canceling: false }
|
|
@@ -536,25 +526,18 @@ window.__ModuleLoader__.load({
|
|
|
536
526
|
return { ...model, runs: Array.isArray(frame.runs) ? frame.runs : [] }
|
|
537
527
|
case 'canceling':
|
|
538
528
|
return { ...model, canceling: true }
|
|
539
|
-
case 'error':
|
|
540
|
-
return { ...model, conn: frame.code === 'follow-failed' || frame.code === 'state-failed' ? 'warn' : model.conn }
|
|
541
|
-
case 'closed':
|
|
542
|
-
return { ...model, conn: 'warn' }
|
|
543
529
|
default:
|
|
544
530
|
return model
|
|
545
531
|
}
|
|
546
532
|
}
|
|
547
533
|
|
|
548
534
|
function Header(props) {
|
|
549
|
-
const {
|
|
535
|
+
const { railOpen, runningCount, onToggleRail } = props
|
|
550
536
|
const toggleLabel = railOpen ? '收起任务栏(Ctrl+Shift+B)' : '展开任务栏(Ctrl+Shift+B)'
|
|
551
537
|
return h('header', { className: 'dsa-header' },
|
|
552
538
|
h('div', { className: 'dsa-crumbs' },
|
|
553
539
|
h('span', { className: 'dsa-crumb dsa-crumb-current' }, PANEL_LABEL)),
|
|
554
540
|
h('div', { className: 'dsa-head-actions' },
|
|
555
|
-
h('span', { className: 'dsa-status' },
|
|
556
|
-
h('span', { className: 'dsa-dot', 'data-state': model.conn }),
|
|
557
|
-
model.conn === 'live' ? '已连接' : model.conn === 'warn' ? '流中断' : '连接中'),
|
|
558
541
|
tipped(toggleLabel, h('button', {
|
|
559
542
|
type: 'button',
|
|
560
543
|
className: 'dsa-iconbtn dsa-railtoggle',
|
|
@@ -563,11 +546,7 @@ window.__ModuleLoader__.load({
|
|
|
563
546
|
onClick: onToggleRail,
|
|
564
547
|
},
|
|
565
548
|
h(Icon, { of: 'panel' }),
|
|
566
|
-
runningCount > 0 ? h('span', { className: 'dsa-badge' }, runningCount > 9 ? '9+' : String(runningCount)) : null))
|
|
567
|
-
tipped('刷新', h('button', { type: 'button', className: 'dsa-iconbtn', onClick: onRefresh },
|
|
568
|
-
h(Icon, { of: 'refresh' }))),
|
|
569
|
-
tipped('新建会话', h('button', { type: 'button', className: 'dsa-iconbtn', onClick: onNew },
|
|
570
|
-
h(Icon, { of: 'newChat' })))))
|
|
549
|
+
runningCount > 0 ? h('span', { className: 'dsa-badge' }, runningCount > 9 ? '9+' : String(runningCount)) : null))))
|
|
571
550
|
}
|
|
572
551
|
|
|
573
552
|
function UserMessage(props) {
|
|
@@ -919,12 +898,9 @@ window.__ModuleLoader__.load({
|
|
|
919
898
|
const notify = text => dispatch({ type: 'toast', text })
|
|
920
899
|
return h('div', { className: 'dsa-root', 'data-rail': railOpen ? 'open' : 'closed' },
|
|
921
900
|
h(Header, {
|
|
922
|
-
model,
|
|
923
901
|
railOpen,
|
|
924
902
|
runningCount,
|
|
925
903
|
onToggleRail: toggleRail,
|
|
926
|
-
onNew: () => dispatch({ type: 'new-session' }),
|
|
927
|
-
onRefresh: () => dispatch({ type: 'refresh' }),
|
|
928
904
|
}),
|
|
929
905
|
h(Toast, { toast: model.toast }),
|
|
930
906
|
h('div', { className: 'dsa-body', 'data-rail': railOpen ? 'open' : 'closed' },
|
|
@@ -976,20 +952,6 @@ window.__ModuleLoader__.load({
|
|
|
976
952
|
|
|
977
953
|
const patch = updater => setModel(current => updater(current))
|
|
978
954
|
|
|
979
|
-
/** Pull the session list; a failure only dims the rail. */
|
|
980
|
-
const loadSessions = async () => {
|
|
981
|
-
try {
|
|
982
|
-
const data = await call('/sessions')
|
|
983
|
-
patch(current => ({
|
|
984
|
-
...current,
|
|
985
|
-
sessions: Array.isArray(data?.sessions) ? data.sessions : [],
|
|
986
|
-
sessionsReason: typeof data?.reason === 'string' ? data.reason : '',
|
|
987
|
-
}))
|
|
988
|
-
} catch (error) {
|
|
989
|
-
patch(current => ({ ...current, sessionsReason: error.message }))
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
|
|
993
955
|
// Connect once per attempt: wait for the relay, then follow the feed.
|
|
994
956
|
react.useEffect(() => {
|
|
995
957
|
let alive = true
|
|
@@ -1020,7 +982,6 @@ window.__ModuleLoader__.load({
|
|
|
1020
982
|
}
|
|
1021
983
|
}
|
|
1022
984
|
if (!alive) return
|
|
1023
|
-
loadSessions()
|
|
1024
985
|
if (typeof EventSource === 'undefined') return
|
|
1025
986
|
source = new EventSource(`${API}/events`)
|
|
1026
987
|
source.addEventListener('console', message => {
|
|
@@ -1031,10 +992,7 @@ window.__ModuleLoader__.load({
|
|
|
1031
992
|
return
|
|
1032
993
|
}
|
|
1033
994
|
patch(current => applyFrame(current, frame))
|
|
1034
|
-
if (frame?.type === 'session' || frame?.type === 'runs') loadSessions()
|
|
1035
995
|
})
|
|
1036
|
-
source.onopen = () => patch(current => ({ ...current, conn: 'live' }))
|
|
1037
|
-
source.onerror = () => patch(current => ({ ...current, conn: 'warn' }))
|
|
1038
996
|
}
|
|
1039
997
|
open()
|
|
1040
998
|
return () => {
|
|
@@ -1109,15 +1067,6 @@ window.__ModuleLoader__.load({
|
|
|
1109
1067
|
throw error
|
|
1110
1068
|
}
|
|
1111
1069
|
},
|
|
1112
|
-
'new-session': async () => {
|
|
1113
|
-
await call('/session', { method: 'POST', body: JSON.stringify({}) })
|
|
1114
|
-
patch(current => ({ ...current, phase: 'loading', messages: [], approvals: [], currentId: null, typing: false }))
|
|
1115
|
-
setAttempt(value => value + 1)
|
|
1116
|
-
},
|
|
1117
|
-
refresh: () => {
|
|
1118
|
-
patch(current => ({ ...current, phase: 'loading' }))
|
|
1119
|
-
setAttempt(value => value + 1)
|
|
1120
|
-
},
|
|
1121
1070
|
retry: () => {
|
|
1122
1071
|
patch(current => ({ ...current, phase: 'loading', reason: '' }))
|
|
1123
1072
|
setAttempt(value => value + 1)
|