@suifei/dsh-ai-team 0.4.71 → 0.4.72
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 +13 -0
- package/index.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.72 - 2026-11-12
|
|
4
|
+
|
|
5
|
+
**`bootstrap?project=<未知 id>` 必须 404,不能静默回退到活动项目**
|
|
6
|
+
|
|
7
|
+
清理归档项目 `prj_main` 后实测发现:`GET /bootstrap?project=prj_main` 返回 200,内容是
|
|
8
|
+
**另一个项目**的数据——路由把「请求的项目没找到」当成「没指定项目」处理。删掉项目后,
|
|
9
|
+
指向它的旧链接/书签会悄悄显示成别的项目,用户无从察觉。
|
|
10
|
+
|
|
11
|
+
- 显式传入且找不到对应 runtime 时返回 `404 NOT_FOUND`(`project <id> not found`);
|
|
12
|
+
- 不带 `project` 参数的隐式请求行为不变(用当前/第一个项目);
|
|
13
|
+
- 测试:`node --test` **273 通过 / 1 跳过**(management 用例新增 HTTP 断言:未知 id → 404
|
|
14
|
+
且 `error.code = NOT_FOUND`)。
|
|
15
|
+
|
|
3
16
|
## 0.4.71 - 2026-11-12
|
|
4
17
|
|
|
5
18
|
**删掉的默认项目不再被静默复活**
|
package/index.js
CHANGED
|
@@ -2122,6 +2122,11 @@ export function apply(ctx, config = {}) {
|
|
|
2122
2122
|
const requestedRuntime = requested === null ? null : projectRuntime(requested);
|
|
2123
2123
|
// 账本里真实存在的项目(registry 的 active 可能与正在服务的账本脱钩)。
|
|
2124
2124
|
const servedProjects = (runtime) => Object.keys(runtime?.service?.state?.projects ?? {});
|
|
2125
|
+
// 显式指定了不存在的项目:必须 404,不能静默回退到活动项目——
|
|
2126
|
+
// 否则删掉项目后,指向它的旧链接/书签会悄悄显示另一个项目的数据。
|
|
2127
|
+
if (requested !== null && requestedRuntime === null) {
|
|
2128
|
+
return send(res, { error: { code: 'NOT_FOUND', message: `project ${requested} not found` } }, 404);
|
|
2129
|
+
}
|
|
2125
2130
|
let bootstrapRuntime = requestedRuntime ?? currentRuntime();
|
|
2126
2131
|
if (requested === null && servedProjects(bootstrapRuntime).length === 0 && servedProjects(booted?.runtime).length > 0) {
|
|
2127
2132
|
bootstrapRuntime = booted.runtime;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.72",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
|
|
6
6
|
"license": "MIT",
|