@suifei/dsh-ai-team 0.4.33 → 0.4.34
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 +7 -0
- package/lib/host/people-view.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.34 - 2026-11-12
|
|
4
|
+
|
|
5
|
+
**同人绑定:合并后显示目标名**
|
|
6
|
+
|
|
7
|
+
- 人员池按名字聚合同一人(同名跨项目合成一行);「同人绑定」把**不同名字**并到一起。上一版修好了归一化,但合并行的名字取自「遍历顺序里第一个成员」——把「百里」绑到「白砚」后,两行确实合成了一行,显示的名字却是「百里」。现在合并行一律以**别名目标**为准:`X → 白砚` 合成的那一行叫「白砚」,与遍历顺序无关。
|
|
8
|
+
- 测试:`node --test` **222/222**(新增 1 例:被绑定名排在前面时仍显示目标名)。
|
|
9
|
+
|
|
3
10
|
## 0.4.33 - 2026-11-12
|
|
4
11
|
|
|
5
12
|
**中危批次 4:验收门禁、权限沿革、技能过滤、job 原子写**
|
package/lib/host/people-view.js
CHANGED
|
@@ -30,6 +30,12 @@ export function aggregatePeople(registryEntries, runtimes, options = {}) {
|
|
|
30
30
|
if (alias.startsWith('person:') || alias.startsWith('name:')) return alias;
|
|
31
31
|
return `name:${alias}`;
|
|
32
32
|
};
|
|
33
|
+
// 合并出来的那一行必须叫**目标**的名字:它由遍历顺序里第一个成员创建,若直接用
|
|
34
|
+
// 该成员的原始名字,「百里 → 白砚」会合成一行却显示成「百里」。
|
|
35
|
+
const displayNameOf = (name) => {
|
|
36
|
+
const alias = aliases !== null && Object.prototype.hasOwnProperty.call(aliases, name) ? aliases[name] : null;
|
|
37
|
+
return typeof alias === 'string' && alias.startsWith('name:') ? alias.slice('name:'.length) : name;
|
|
38
|
+
};
|
|
33
39
|
for (const runtime of runtimes) {
|
|
34
40
|
const projectName = registryEntries.find((project) => project.id === runtime.id)?.name ?? runtime.id;
|
|
35
41
|
const state = runtime.service?.state;
|
|
@@ -59,7 +65,7 @@ export function aggregatePeople(registryEntries, runtimes, options = {}) {
|
|
|
59
65
|
const memberName = member.name || member.id;
|
|
60
66
|
const bucket = bucketOf(memberName);
|
|
61
67
|
const entry = people.get(bucket) ?? {
|
|
62
|
-
name: memberName,
|
|
68
|
+
name: displayNameOf(memberName),
|
|
63
69
|
role: member.role ?? '',
|
|
64
70
|
projects: [],
|
|
65
71
|
failures: 0,
|
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.34",
|
|
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",
|