dsh-dispatch-board 0.1.0 → 0.1.3
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 +10 -0
- package/lib/index.js +12 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# dsh-dispatch-board —— 派单看板 + 派单模式
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/dsh-dispatch-board) [](https://github.com/duanxiangchun/dsh-dispatch-board/actions/workflows/ci.yml)
|
|
4
|
+
|
|
3
5
|
给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(dsh)用的插件,解决一个具体问题:
|
|
4
6
|
|
|
5
7
|
> 包名:`dsh-dispatch-board`(npm / GitHub 同名)。内部运行时标识仍是 `taskboard`(存储目录 `~/.dsh/storages/dsh-taskboard/`、RPC 路由 `/taskboard`、预设 id `taskboard-*`、工具 `taskboard_*`),这样老安装和已有看板数据不会失效。
|
|
@@ -42,6 +44,14 @@
|
|
|
42
44
|
- **新「模式」:派单看板模式**。插件包自带两个模式声明(不写盘、不需要额外安装步骤),
|
|
43
45
|
在模式选择器里选「派单看板模式」,主 Agent 就按派单口径工作(不写文件、不跑命令,一切派给子 Agent)。
|
|
44
46
|
|
|
47
|
+
## npm 安装
|
|
48
|
+
|
|
49
|
+
```powershell
|
|
50
|
+
dsh plugin --profile web add dsh-dispatch-board
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
npm: https://www.npmjs.com/package/dsh-dispatch-board · GitHub Release 由 tag `v*` 触发流水线自动发布。
|
|
54
|
+
|
|
45
55
|
## 安装
|
|
46
56
|
|
|
47
57
|
```powershell
|
package/lib/index.js
CHANGED
|
@@ -1306,7 +1306,7 @@ function startPolling(rt) {
|
|
|
1306
1306
|
* 模型工具
|
|
1307
1307
|
* ------------------------------------------------------------------ */
|
|
1308
1308
|
|
|
1309
|
-
const TASK_LIST_OUTPUT_SCHEMA = {
|
|
1309
|
+
export const TASK_LIST_OUTPUT_SCHEMA = {
|
|
1310
1310
|
type: 'object',
|
|
1311
1311
|
additionalProperties: false,
|
|
1312
1312
|
required: ['count', 'tasks'],
|
|
@@ -1332,14 +1332,22 @@ const TASK_LIST_OUTPUT_SCHEMA = {
|
|
|
1332
1332
|
},
|
|
1333
1333
|
}
|
|
1334
1334
|
|
|
1335
|
-
|
|
1335
|
+
/**
|
|
1336
|
+
* 三个模型工具共用的任务摘要(taskboard_list 的 tasks[] / taskboard_add / taskboard_update 的 task)。
|
|
1337
|
+
*
|
|
1338
|
+
* 这里的键必须全部在 output.schema 里声明:dsh tools 管线在 execute() 成功返回之后才校验 canonical
|
|
1339
|
+
* output,而两个 output.schema 都是 additionalProperties:false 的封闭契约——多带一个未声明字段就会抛
|
|
1340
|
+
* ToolOutputError(INVALID_TOOL_OUTPUT),此时 execute() 的副作用(写盘 / 状态迁移)已经生效,
|
|
1341
|
+
* 模型侧却只看到调用失败。UI 专用字段(dispatchedSessionId / sessionId / cwd 等)由 buildSnapshot()
|
|
1342
|
+
* 的完整任务对象提供,不要加进 taskBrief。回归测试见 test/host.test.mjs。
|
|
1343
|
+
*/
|
|
1344
|
+
export function taskBrief(task) {
|
|
1336
1345
|
return {
|
|
1337
1346
|
id: task.id,
|
|
1338
1347
|
title: task.title,
|
|
1339
1348
|
status: task.status,
|
|
1340
1349
|
note: task.note || '',
|
|
1341
1350
|
assignee: task.assignee || '',
|
|
1342
|
-
dispatchedSessionId: task.dispatchedSessionId || null,
|
|
1343
1351
|
result: task.result || '',
|
|
1344
1352
|
updatedAt: task.updatedAt,
|
|
1345
1353
|
}
|
|
@@ -1366,7 +1374,7 @@ function renderTaskOne(prefix, task) {
|
|
|
1366
1374
|
return [{ type: 'text', text: lines.join('\n') }]
|
|
1367
1375
|
}
|
|
1368
1376
|
|
|
1369
|
-
const TASK_ONE_OUTPUT_SCHEMA = {
|
|
1377
|
+
export const TASK_ONE_OUTPUT_SCHEMA = {
|
|
1370
1378
|
type: 'object',
|
|
1371
1379
|
additionalProperties: false,
|
|
1372
1380
|
required: ['task'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dispatch-board",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "DeepSeek Harness 插件:派单看板 + 派单模式。主 Agent 只拆解/派发/审核/汇报,子 Agent 干活;看板四列(待开始/进行中/已完成/已归档)由轮询自动派发,结论按 Markdown 展示。Dispatcher mode plus a dispatch board for DeepSeek Harness.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|