@xiangyixie/dsh-superagent 0.14.9 → 0.15.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/CHANGELOG.md +28 -0
- package/README.en.md +3 -3
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/lib/console.js +11 -0
- package/lib/index.js +41 -0
- package/package.json +1 -1
- package/public/console.html +584 -100
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,34 @@ 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.15.1 — 2026-11-16
|
|
12
|
+
|
|
13
|
+
### 变化
|
|
14
|
+
|
|
15
|
+
- **调度板挪到右侧,收得起来。** 会话调度从对话正文里搬出来,成了右侧常驻栏,点栏
|
|
16
|
+
上箭头收起、再点展开。收起状态记在浏览器里,刷新或重开页面还是你上次选的样子;窄
|
|
17
|
+
到 720px 时默认收起,展开是浮在对话上方,不会把正文挤成一条缝。
|
|
18
|
+
- **一个会话一张方卡。** 卡片按网格排列,一张卡就是一个会话:上面写这个会话现在是
|
|
19
|
+
在跑、排队、等你决定、等审批,还是完成、失败、空闲;下面直接写跑了几条任务线、
|
|
20
|
+
并行几路、有没有排队,以及现在在跑什么工具。点卡片进入详情,能看到这个会话里的
|
|
21
|
+
每条任务线、每个步骤的状态、耗时,以及哪一步在等哪一步。数据仍只读宿主的会话列表
|
|
22
|
+
和现有 run 记录,没有另造状态或第二套队列。
|
|
23
|
+
|
|
24
|
+
## 0.15.0 — 2026-11-16
|
|
25
|
+
|
|
26
|
+
### 变化
|
|
27
|
+
|
|
28
|
+
- **界面上的字改成人话。** 空状态、按钮、提醒、审批卡、报错和向导都按你当下要做的事
|
|
29
|
+
写一句话:具体名词代替抽象名词,不用「一键」「赋能」这类词,不排比,不客套,也不堆
|
|
30
|
+
感叹号。文案分两处:页面里的固定句子在 `public/console.html`,服务端回给你的错误说明
|
|
31
|
+
在 `lib/console.js`;状态词、耗时、提醒标题这些跟着 run 记录自动生成。
|
|
32
|
+
- **调度板:一眼看到几条线在跑。** 有任务在跑时,对话上方出现一块调度板:每一步一条
|
|
33
|
+
时间条,按真实的开始、结束时间画;板头写清同时跑几条任务线、并行几步、几步在等前
|
|
34
|
+
一步、几条在排队,每行的任务线标题旁是状态和耗时。数据全部读现有 run 记录(含
|
|
35
|
+
`subtasks` 的 `startedAt`/`finishedAt`/`waitingOn` 和 `limits.maxParallel`、
|
|
36
|
+
`queue.position`),没有第二套状态。窗口窄到 720px 时每一步改成上下两行,时间条
|
|
37
|
+
占满宽度,不会挤在一起。
|
|
38
|
+
|
|
11
39
|
## 0.14.9 — 2026-11-16
|
|
12
40
|
|
|
13
41
|
### 变化
|
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.
|
|
39
|
+
Desktop: **Plugins** → **Add plugin** → enter `@xiangyixie/dsh-superagent@0.15.1` → install.
|
|
40
40
|
|
|
41
41
|
CLI:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.
|
|
44
|
+
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.15.1
|
|
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.
|
|
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.15.1` 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.
|
|
39
|
+
桌面端:侧边栏 **插件** → **Add plugin** → 输入 `@xiangyixie/dsh-superagent@0.15.1` → 安装。
|
|
40
40
|
|
|
41
41
|
命令行:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.
|
|
44
|
+
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.15.1
|
|
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.
|
|
1093
|
+
| `superagent_*` 工具不存在 | bundle 行没挂上,或者宿主拒绝加载插件。 | 跑 `--dump-config` 查 `@xiangyixie/dsh-superagent` 块;用 `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.15.1` 重装,并在宿主日志里找 `[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.
|
|
39
|
+
桌面端:侧边栏 **插件** → **Add plugin** → 输入 `@xiangyixie/dsh-superagent@0.15.1` → 安装。
|
|
40
40
|
|
|
41
41
|
命令行:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.
|
|
44
|
+
dsh plugin --profile web add @xiangyixie/dsh-superagent@0.15.1
|
|
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.
|
|
1093
|
+
| `superagent_*` 工具不存在 | bundle 行没挂上,或者宿主拒绝加载插件。 | 跑 `--dump-config` 查 `@xiangyixie/dsh-superagent` 块;用 `dsh plugin --profile <p> add @xiangyixie/dsh-superagent@0.15.1` 重装,并在宿主日志里找 `[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/console.js
CHANGED
|
@@ -1171,6 +1171,17 @@ export function createConsole({
|
|
|
1171
1171
|
return
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
|
+
if (leaf === 'schedules' && parts.length === 3) {
|
|
1175
|
+
if (method !== 'GET') throw new WorkbenchError(405, 'only GET is allowed here', { id: 'method-not-allowed' })
|
|
1176
|
+
try {
|
|
1177
|
+
const sessions = typeof host.listSchedules === 'function' ? await host.listSchedules() : []
|
|
1178
|
+
send(res, 200, { ok: true, data: { sessions, currentSessionId, reason: null } })
|
|
1179
|
+
} catch (error) {
|
|
1180
|
+
send(res, 200, { ok: true, data: { sessions: [], currentSessionId, reason: messageOf(error) } })
|
|
1181
|
+
}
|
|
1182
|
+
return
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1174
1185
|
if (leaf === 'session' && parts.length === 4 && parts[3] === 'switch') {
|
|
1175
1186
|
if (method !== 'POST') throw new WorkbenchError(405, 'only POST is allowed here', { id: 'method-not-allowed' })
|
|
1176
1187
|
const body = await readJson(req)
|
package/lib/index.js
CHANGED
|
@@ -3546,6 +3546,7 @@ export function apply(ctx, config) {
|
|
|
3546
3546
|
const subtasks = Array.isArray(run.subtasks)
|
|
3547
3547
|
? run.subtasks.map(subtask => ({
|
|
3548
3548
|
index: subtask.index ?? null,
|
|
3549
|
+
key: subtask.key ?? null,
|
|
3549
3550
|
title: subtask.title ?? null,
|
|
3550
3551
|
status: subtask.status ?? null,
|
|
3551
3552
|
childId: subtask.childId ?? null,
|
|
@@ -3553,6 +3554,11 @@ export function apply(ctx, config) {
|
|
|
3553
3554
|
// every lane looks equally busy.
|
|
3554
3555
|
startedAt: subtask.startedAt ?? null,
|
|
3555
3556
|
finishedAt: subtask.finishedAt ?? null,
|
|
3557
|
+
// The scheduler already records why a step has not started. Passing
|
|
3558
|
+
// those edges through lets the page draw the same order, instead of
|
|
3559
|
+
// guessing a queue of its own.
|
|
3560
|
+
dependsOn: Array.isArray(subtask.dependsOn) ? subtask.dependsOn.slice(0, 12) : [],
|
|
3561
|
+
waitingOn: Array.isArray(subtask.waitingOn) ? subtask.waitingOn.slice(0, 12) : [],
|
|
3556
3562
|
tool: subtask.status === 'running' ? runningToolName(subtask.childId) : null,
|
|
3557
3563
|
}))
|
|
3558
3564
|
: []
|
|
@@ -3562,8 +3568,22 @@ export function apply(ctx, config) {
|
|
|
3562
3568
|
goal: run.goal,
|
|
3563
3569
|
status: run.status,
|
|
3564
3570
|
createdAt: run.createdAt ?? null,
|
|
3571
|
+
startedAt: run.startedAt ?? null,
|
|
3565
3572
|
finishedAt: run.finishedAt ?? null,
|
|
3566
3573
|
parentSessionId: run.parentSessionId ?? null,
|
|
3574
|
+
// The cap the scheduler really used, and the line it is holding in the
|
|
3575
|
+
// queue, are read from the run record rather than re-derived here.
|
|
3576
|
+
limits: run.limits
|
|
3577
|
+
? { maxParallel: run.limits.maxParallel ?? null, maxSubtasks: run.limits.maxSubtasks ?? null }
|
|
3578
|
+
: null,
|
|
3579
|
+
queue: run.queue
|
|
3580
|
+
? {
|
|
3581
|
+
waiting: run.queue.waiting === true,
|
|
3582
|
+
position: run.queue.position ?? null,
|
|
3583
|
+
of: run.queue.of ?? null,
|
|
3584
|
+
enqueuedAt: run.queue.enqueuedAt ?? null,
|
|
3585
|
+
}
|
|
3586
|
+
: null,
|
|
3567
3587
|
cost: cost
|
|
3568
3588
|
? {
|
|
3569
3589
|
totalMicros: cost.totalMicros,
|
|
@@ -3861,6 +3881,27 @@ export function apply(ctx, config) {
|
|
|
3861
3881
|
})))
|
|
3862
3882
|
},
|
|
3863
3883
|
|
|
3884
|
+
/**
|
|
3885
|
+
* Session list plus the run rows the sidebar needs. The rows are the same
|
|
3886
|
+
* runView the message stream uses; the sidebar only groups them per
|
|
3887
|
+
* session, it does not keep a queue of its own.
|
|
3888
|
+
*/
|
|
3889
|
+
async listSchedules() {
|
|
3890
|
+
const sessions = await this.listSessions()
|
|
3891
|
+
const all = await store.list().catch(() => [])
|
|
3892
|
+
const bySession = new Map()
|
|
3893
|
+
for (const run of all) {
|
|
3894
|
+
if (!run || typeof run.parentSessionId !== 'string') continue
|
|
3895
|
+
const list = bySession.get(run.parentSessionId) ?? []
|
|
3896
|
+
list.push(run)
|
|
3897
|
+
bySession.set(run.parentSessionId, list)
|
|
3898
|
+
}
|
|
3899
|
+
return sessions.map(session => ({
|
|
3900
|
+
...session,
|
|
3901
|
+
rows: (bySession.get(session.sessionId) ?? []).slice(-8).map(run => runView(run)),
|
|
3902
|
+
}))
|
|
3903
|
+
},
|
|
3904
|
+
|
|
3864
3905
|
/**
|
|
3865
3906
|
* One conversation's log, newest page first and then walked back to the
|
|
3866
3907
|
* first turn. The controller reads cold sessions too, so a conversation
|