@marsken/dsh-studio 0.1.19 → 0.1.20
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/client.js +16 -16
- package/dist/client.js +16 -16
- package/docs/compatibility.md +1 -1
- package/docs/publish.md +2 -0
- package/package.json +1 -1
- package/src/host/discovery.js +16 -0
- package/src/host/routes/requirements.js +4 -2
package/docs/compatibility.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
| 项 | 值 |
|
|
8
8
|
| --- | --- |
|
|
9
|
-
| dsh-studio | `package.json` `version: 0.1.
|
|
9
|
+
| dsh-studio | `package.json` `version: 0.1.20` |
|
|
10
10
|
| DeepSeek Harness | `0.2.2-rc.1`(`dsh --version`) |
|
|
11
11
|
| Node | `v24.22.2`(Linux 目标机);本机 Windows `v24.19.0` |
|
|
12
12
|
| 目标系统 | Ubuntu 24.04,`dsh web` 监听 `18080`,nginx `:80` 反代并注入 `dsh-auth-*` cookie |
|
package/docs/publish.md
CHANGED
|
@@ -127,6 +127,8 @@ token 只写进临时 npmrc(放在仓库外或 `tmp/` 且不提交),发完
|
|
|
127
127
|
| --- | --- | --- |
|
|
128
128
|
| `0.1.0` | 2026-11-13 | 首个公开版:看板 / 需求 / 用例回归 / 效能 / 设计评审四期 |
|
|
129
129
|
| `0.1.1` | 2026-11-13 | 补三张 README 截图(npm 页可看图);默认值与文档去掉公司内网信息 |
|
|
130
|
+
| `0.1.20` | 2026-11-15 | 拆卡时提示「有后端但功能点没覆盖后端」 |
|
|
131
|
+
| `0.1.19` | 2026-11-15 | 需求澄清三问 + 拆卡门禁;修补答保存不上的白名单漏字段 |
|
|
130
132
|
| `0.1.17` | 2026-11-15 | 截图补到 10 张,且有脚本可重跑 |
|
|
131
133
|
| `0.1.16` | 2026-11-15 | quickstart 命令修正 + GitLab 打桩验证配方 |
|
|
132
134
|
| `0.1.15` | 2026-11-15 | 清掉三处过期的「已知限制」 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marsken/dsh-studio",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DSH Studio: role-based multi-agent workspace (product / architect / developer / QA) with a live work board, GitLab + Feishu connection settings, all configurable from the web GUI.",
|
|
6
6
|
"main": "index.js",
|
package/src/host/discovery.js
CHANGED
|
@@ -16,6 +16,22 @@ export function sanitizeDiscovery(raw) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
const BACKEND_HINT = /接口|api|数据库|数据表|建表|后端|服务端|鉴权|sqlite|postgres|持久化|存储/i
|
|
20
|
+
const BACKEND_YES = /^(有|yes|是|需要|要)/i
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 说了「有服务端」,功能点里却没有一条跟后端有关 —— 大概率又要只交付一半。
|
|
24
|
+
* 只提示、不拦:有的需求后端在别的仓库或别的需求里,硬拦会误伤。
|
|
25
|
+
*/
|
|
26
|
+
export function backendCoverageWarning(requirement) {
|
|
27
|
+
const answer = String(requirement?.discovery?.server ?? '').trim()
|
|
28
|
+
if (answer === '' || BACKEND_YES.test(answer) !== true) return null
|
|
29
|
+
const points = Array.isArray(requirement?.points) ? requirement.points : []
|
|
30
|
+
const hit = points.some(point => BACKEND_HINT.test(String(point?.title ?? '') + ' ' + String(point?.description ?? '')))
|
|
31
|
+
if (hit) return null
|
|
32
|
+
return '澄清里说有服务端,但功能点没有一条讲接口 / 数据表 / 鉴权:后端在哪一块交付?'
|
|
33
|
+
}
|
|
34
|
+
|
|
19
35
|
/** 还缺哪几项澄清;空了才允许拆卡。 */
|
|
20
36
|
export function discoveryGaps(requirement) {
|
|
21
37
|
const discovery = requirement?.discovery ?? {}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sanitizeRequirementPool,
|
|
8
8
|
text,
|
|
9
9
|
} from '../domain.js'
|
|
10
|
-
import { discoveryGaps } from '../discovery.js'
|
|
10
|
+
import { backendCoverageWarning, discoveryGaps } from '../discovery.js'
|
|
11
11
|
import { casesOfTasks, impactSummary } from '../impact.js'
|
|
12
12
|
import {
|
|
13
13
|
ensureReqFolder,
|
|
@@ -219,7 +219,9 @@ export async function handleRequirementRoute({ method, route, req, res, store, u
|
|
|
219
219
|
})
|
|
220
220
|
created.push(task)
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
// 说了有后端却没有后端功能点:给个提示,不拦(后端可能确实在别的需求里)
|
|
223
|
+
const warning = backendCoverageWarning(requirement)
|
|
224
|
+
host.sendJson(res, 200, { ok: true, created, warnings: warning === null ? [] : [warning], state: host.publicState(store) })
|
|
223
225
|
return true
|
|
224
226
|
}
|
|
225
227
|
if (method === 'POST' && route === '/requirement/pool') {
|