@suifei/dsh-ai-team 0.3.51 → 0.3.52
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/client.js +39 -11
- package/index.js +1 -1
- package/lib/host/service.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.52 — 2026-11-10
|
|
4
|
+
|
|
5
|
+
- bootstrap 返回全部 Task 的 Thread 映射,修复卡片显示 6 条回复但右栏打开为空的错位;
|
|
6
|
+
- 右栏标题改为「任务记录」,新增可展开的任务详情(结果定义、QA 进度、更新时间);
|
|
7
|
+
- 右栏「Agent 会话」直接打开该 Agent 的 DSH session,完整上下文不再在插件里重复;
|
|
8
|
+
- 左栏返回标签由「对话」改为「项目总览」,避免与任务 Thread 混淆。
|
|
9
|
+
|
|
3
10
|
## 0.3.51 — 2026-11-10
|
|
4
11
|
|
|
5
12
|
- 唤醒后再同步一次 session 标题:cold session 在唤醒前无法 rename,唤醒变 live 后补同步;
|
package/client.js
CHANGED
|
@@ -24,7 +24,7 @@ window.__ModuleLoader__.load({
|
|
|
24
24
|
|
|
25
25
|
const zh = {
|
|
26
26
|
panel: '文渊阁',
|
|
27
|
-
back: '
|
|
27
|
+
back: '项目总览',
|
|
28
28
|
inbox: '收件箱',
|
|
29
29
|
board: '任务看板',
|
|
30
30
|
projects: '项目',
|
|
@@ -45,9 +45,13 @@ window.__ModuleLoader__.load({
|
|
|
45
45
|
send: '发送',
|
|
46
46
|
createTask: '创建 Task',
|
|
47
47
|
enterHint: 'Ctrl/⌘ + Enter 发送',
|
|
48
|
-
thread: '
|
|
49
|
-
closeThread: '
|
|
50
|
-
threadChat: '
|
|
48
|
+
thread: '任务记录',
|
|
49
|
+
closeThread: '关闭任务记录',
|
|
50
|
+
threadChat: 'Agent 会话',
|
|
51
|
+
taskDetail: '任务详情',
|
|
52
|
+
resultDefinition: '结果定义',
|
|
53
|
+
qaProgress: 'QA {done}/{total}',
|
|
54
|
+
updated: '更新',
|
|
51
55
|
follow: '关注',
|
|
52
56
|
unfollow: '取消关注',
|
|
53
57
|
convert: '转为 Task',
|
|
@@ -130,7 +134,7 @@ window.__ModuleLoader__.load({
|
|
|
130
134
|
expandDone: '展开全部',
|
|
131
135
|
collapseDone: '收起',
|
|
132
136
|
threadEmptyTitle: '还没有消息',
|
|
133
|
-
threadEmptyBody: '
|
|
137
|
+
threadEmptyBody: '还没有任务记录;可在下方回复,或打开 Agent 会话查看完整上下文。',
|
|
134
138
|
acceptance: '验收',
|
|
135
139
|
candidate: '候选验收',
|
|
136
140
|
acceptEligible: '你从未认领过该任务,且不是执行者,所以可以由你验收。',
|
|
@@ -360,7 +364,7 @@ window.__ModuleLoader__.load({
|
|
|
360
364
|
};
|
|
361
365
|
const en = {
|
|
362
366
|
panel: 'Wenyuan Pavilion',
|
|
363
|
-
back: '
|
|
367
|
+
back: 'Overview',
|
|
364
368
|
inbox: 'Inbox',
|
|
365
369
|
board: 'All tasks',
|
|
366
370
|
projects: 'Projects',
|
|
@@ -381,9 +385,13 @@ window.__ModuleLoader__.load({
|
|
|
381
385
|
send: 'Send',
|
|
382
386
|
createTask: 'Create task',
|
|
383
387
|
enterHint: 'Ctrl/⌘ + Enter to send',
|
|
384
|
-
thread: '
|
|
385
|
-
closeThread: 'Close
|
|
386
|
-
threadChat: '
|
|
388
|
+
thread: 'Task record',
|
|
389
|
+
closeThread: 'Close task record',
|
|
390
|
+
threadChat: 'Agent session',
|
|
391
|
+
taskDetail: 'Task details',
|
|
392
|
+
resultDefinition: 'Definition of done',
|
|
393
|
+
qaProgress: 'QA {done}/{total}',
|
|
394
|
+
updated: 'Updated',
|
|
387
395
|
follow: 'Follow',
|
|
388
396
|
unfollow: 'Unfollow',
|
|
389
397
|
convert: 'Turn into task',
|
|
@@ -466,7 +474,7 @@ window.__ModuleLoader__.load({
|
|
|
466
474
|
expandDone: 'Show all',
|
|
467
475
|
collapseDone: 'Collapse',
|
|
468
476
|
threadEmptyTitle: 'No messages yet',
|
|
469
|
-
threadEmptyBody: '
|
|
477
|
+
threadEmptyBody: 'No task record yet. Reply below, or open the Agent session for full context.',
|
|
470
478
|
acceptance: 'Acceptance',
|
|
471
479
|
candidate: 'Candidate',
|
|
472
480
|
acceptEligible: 'You never claimed this task and are not its executor, so acceptance is yours.',
|
|
@@ -1252,6 +1260,9 @@ window.__ModuleLoader__.load({
|
|
|
1252
1260
|
.at-iconbtn { width: 28px; padding: 0; }
|
|
1253
1261
|
.at-rnote { flex: 0 0 auto; display: flex; align-items: flex-start; gap: 8px; margin: 8px 10px 0; padding: 6px 8px; border-left: 2px solid var(--dsw-alias-state-business-primary); border-radius: var(--dsw-radius-sm); background: var(--dsw-alias-bg-layer-2); color: var(--dsw-alias-label-secondary); font-size: 11px; line-height: 16px; }
|
|
1254
1262
|
.at-rbody { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 14px 12px; scrollbar-width: thin; scrollbar-color: var(--dsw-alias-scrollbar-bg-l1) transparent; }
|
|
1263
|
+
.at-taskdetail { margin: 10px 0 4px; border: 1px solid var(--dsw-alias-border-l2); border-radius: var(--dsw-radius-sm); background: var(--dsw-alias-bg-layer-2); }
|
|
1264
|
+
.at-taskdetailsum { padding: 8px 10px; cursor: pointer; color: var(--dsw-alias-label-secondary); font-size: 12px; font-weight: 500; line-height: 18px; }
|
|
1265
|
+
.at-taskdetailbody { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
|
|
1255
1266
|
.at-tmsgs { display: flex; flex-direction: column; }
|
|
1256
1267
|
.at-tmsg { padding: 10px 0; border-bottom: 1px solid var(--dsw-alias-border-l1); }
|
|
1257
1268
|
.at-tmsg:last-child { border-bottom: 0; }
|
|
@@ -1972,6 +1983,23 @@ window.__ModuleLoader__.load({
|
|
|
1972
1983
|
task.submission?.summary ? h('p', { className: 'at-donetext' }, task.submission.summary) : null);
|
|
1973
1984
|
}
|
|
1974
1985
|
|
|
1986
|
+
function TaskDetail({ t, task }) {
|
|
1987
|
+
const qa = Array.isArray(task.qaChecklist) ? task.qaChecklist : [];
|
|
1988
|
+
const passed = Array.isArray(task.qaChecks) ? task.qaChecks.filter((item) => item.passed === true).length : 0;
|
|
1989
|
+
return h('details', { className: 'at-taskdetail', open: task.status !== 'done' },
|
|
1990
|
+
h('summary', { className: 'at-taskdetailsum' }, t('taskDetail')),
|
|
1991
|
+
h('div', { className: 'at-taskdetailbody' },
|
|
1992
|
+
h('div', { className: 'at-kv' },
|
|
1993
|
+
h('span', { className: 'at-kvlabel' }, t('resultDefinition')),
|
|
1994
|
+
h('div', { className: 'at-kvbody' }, task.resultDefinition || t('noSummary'))),
|
|
1995
|
+
qa.length > 0 ? h('div', { className: 'at-kv' },
|
|
1996
|
+
h('span', { className: 'at-kvlabel' }, t('qaChecklist')),
|
|
1997
|
+
h('div', { className: 'at-kvbody' }, tf(t, 'qaProgress', { done: passed, total: qa.length }) + ' · ' + qa.join(' / '))) : null,
|
|
1998
|
+
h('div', { className: 'at-kv' },
|
|
1999
|
+
h('span', { className: 'at-kvlabel' }, t('updated')),
|
|
2000
|
+
h('div', { className: 'at-kvbody' }, task.updatedAt ? fmtDateTime(task.updatedAt) : '—'))));
|
|
2001
|
+
}
|
|
2002
|
+
|
|
1975
2003
|
function ThreadPanel({ t, task, thread, project, following, onToggleFollow, onClose, onChat, converting, convert, reply, onReplyChange, onReplySend, replyBase, onContinue, onContext, note, onDismissNote, acceptChecked, onAcceptChecked, qaChecks, onQaCheck, onAccept, onChanges, actions, panelRef, replyRef }) {
|
|
1976
2004
|
const headSeq = thread?.headSeq ?? thread?.entries?.length ?? 0;
|
|
1977
2005
|
const stale = replyBase !== null && replyBase !== undefined && headSeq > replyBase;
|
|
@@ -1992,7 +2020,7 @@ window.__ModuleLoader__.load({
|
|
|
1992
2020
|
? h(ConvertForm, { t, project, task, thread, title: convert.title, dod: convert.dod, onTitle: convert.onTitle, onDod: convert.onDod, onCancel: convert.onCancel, onSubmit: convert.onSubmit })
|
|
1993
2021
|
: h('div', { className: 'at-rbody' },
|
|
1994
2022
|
stale ? h(ConflictBanner, { t, thread, baseSeq: replyBase, headSeq, onContinue, onContext }) : null,
|
|
1995
|
-
task.status === 'done' ? h(DoneSummary, { t, task }) :
|
|
2023
|
+
task.status === 'done' ? h(DoneSummary, { t, task }) : h(TaskDetail, { t, task }),
|
|
1996
2024
|
entries.length
|
|
1997
2025
|
? h('div', { className: 'at-tmsgs' }, entries.map((message, index) => h('div', { key: message.seq ?? index, className: 'at-tmsg' },
|
|
1998
2026
|
h('div', { className: 'at-tmh' },
|
package/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export const name = 'ai-team';
|
|
|
34
34
|
/** The workbench only makes sense where the Web carrier exists. */
|
|
35
35
|
export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy'];
|
|
36
36
|
|
|
37
|
-
const VERSION = '0.3.
|
|
37
|
+
const VERSION = '0.3.52';
|
|
38
38
|
const PROJECT_ID = 'prj_main';
|
|
39
39
|
const HUMAN_ID = 'mem_human';
|
|
40
40
|
|
package/lib/host/service.js
CHANGED
|
@@ -126,6 +126,10 @@ export class TeamService {
|
|
|
126
126
|
const stream = project === undefined ? [] : (state.stream ?? []).filter((entry) => entry.projectId === project.id);
|
|
127
127
|
const selected = threadTaskId ?? tasks.find((task) => task.status === 'in_progress')?.id ?? tasks[0]?.id;
|
|
128
128
|
const thread = selected === undefined ? null : (state.threads?.[selected] ?? { taskId: selected, headSeq: 0, entries: [] });
|
|
129
|
+
const threads = Object.fromEntries(tasks.map((task) => [
|
|
130
|
+
task.id,
|
|
131
|
+
state.threads?.[task.id] ?? { taskId: task.id, headSeq: 0, entries: [] },
|
|
132
|
+
]));
|
|
129
133
|
const inbox = Object.values(state.inbox ?? {}).filter((item) =>
|
|
130
134
|
(item.memberId === state.humanMemberId || item.memberId === 'h1')
|
|
131
135
|
&& !isInformationalThreadMention(item));
|
|
@@ -137,6 +141,7 @@ export class TeamService {
|
|
|
137
141
|
tasks,
|
|
138
142
|
stream,
|
|
139
143
|
thread,
|
|
144
|
+
threads,
|
|
140
145
|
inbox,
|
|
141
146
|
board: project === undefined ? null : this.board(project.id),
|
|
142
147
|
quadrants: project === undefined ? null : this.quadrants(project.id),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.52",
|
|
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",
|