@suifei/dsh-ai-team 0.3.61 → 0.3.63
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 +11 -0
- package/client.js +2 -2
- package/index.js +1 -1
- package/lib/host/risk-view.js +5 -0
- package/lib/host/service.js +6 -1
- package/lib/ledger/fold.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.63 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- 修复风险清单「失败」永挂:成员恢复后 `member/recovered` 此前不清 `lastFailure`,一次瞬时 tool/LLM 失败会永远钉在 Human 的风险清单;fold 恢复即清除 + 风险视图对旧账本防御(failure 早于 lastRecoveredAt 不计);
|
|
6
|
+
- 失败消息入库截断 400 字符(3KB tool dump 不再轰击账本与 UI);前端风险行截断 240 + hover 全文;
|
|
7
|
+
- 实测案例:玄策 10:30 的 edit 参数 JSON 截断,08:26 已恢复三连,风险清单仍挂昨日原文——本版本后此类瞬态失败自动出局。
|
|
8
|
+
|
|
9
|
+
## 0.3.62 — 2026-11-11
|
|
10
|
+
|
|
11
|
+
- **【致命】工作台渲染崩溃修复**:主对话流 `StreamMessage` 调用处的 `onOpenProfile` 简写属性引用了 Workbench 作用域中不存在的标识符(正确目标是 `openProfile` 函数),首次渲染即抛 `ReferenceError: onOpenProfile is not defined` 使整个工作台白屏。改为显式 `onOpenProfile: openProfile`(与 MemberView 调用点一致)。`node --check` 对简写属性语法不报错,静态检查存在盲区;
|
|
12
|
+
- **新增无头渲染 E2E**([test/client.render.test.js](test/client.render.test.js)):行为级 React mock(hooks 游标模拟调用顺序、createElement 即时求值函数组件、class 组件走 render()、mount-effect 去重)驱动完整工作台树求值(loading → bootstrap 数据 → 消息流/任务卡/团队脉搏),断言全程无引用错误;红绿闭环验证:重新引入本 bug 时测试精确复现 `ReferenceError: onOpenProfile is not defined`。此类渲染期裸引用错误今后在提交前即被拦截。
|
|
13
|
+
|
|
3
14
|
## 0.3.61 — 2026-11-11
|
|
4
15
|
|
|
5
16
|
- 修复验收死锁放大器:`pending_acceptance` 的 review 催办分支 `continue` 会跳过 60 分钟升级,QA 每 10 分钟被叫、Thread 裁定的执行手永不唤醒;现在验收滞留 ≥60 分钟同样触发 escalate(配合 085085d 同时唤醒 Project owner)。
|
package/client.js
CHANGED
|
@@ -3747,7 +3747,7 @@ window.__ModuleLoader__.load({
|
|
|
3747
3747
|
h('button', { className: 'at-btn at-btn-small', type: 'button', onClick: () => openInboxTask({ ref: { taskId: row.taskId }, projectId: projectId }) }, t('inboxOpenTask')))),
|
|
3748
3748
|
risksData.failures.map((row) => h('div', { key: 'f' + row.memberId, className: 'at-peopleproject' },
|
|
3749
3749
|
h('span', { className: 'at-peopleprojectname' }, row.name),
|
|
3750
|
-
h('span', { className: 'at-peoplefail' }, failureHuman(t, row.category ?? 'unknown') + (row.message ? ' · ' + row.message : '')),
|
|
3750
|
+
h('span', { className: 'at-peoplefail', title: row.message ?? '' }, failureHuman(t, row.category ?? 'unknown') + (row.message ? ' · ' + (row.message.length > 240 ? row.message.slice(0, 240) + '…' : row.message) : '')),
|
|
3751
3751
|
h('button', { className: 'at-btn at-btn-small', type: 'button', onClick: () => {
|
|
3752
3752
|
const agent = data.agents.find((candidate) => candidate.name === row.name);
|
|
3753
3753
|
if (agent) { closeMobile(); openProfile(agent); } else say(t('quadrantMissing'));
|
|
@@ -3844,7 +3844,7 @@ window.__ModuleLoader__.load({
|
|
|
3844
3844
|
selected,
|
|
3845
3845
|
follows: followingOf,
|
|
3846
3846
|
highlight: streamHighlight === item.id,
|
|
3847
|
-
onOpenProfile,
|
|
3847
|
+
onOpenProfile: openProfile,
|
|
3848
3848
|
onOpen: openTask,
|
|
3849
3849
|
onToggleFollow: toggleFollow,
|
|
3850
3850
|
}))
|
package/index.js
CHANGED
|
@@ -41,7 +41,7 @@ export const name = 'ai-team';
|
|
|
41
41
|
/** The workbench only makes sense where the Web carrier exists. */
|
|
42
42
|
export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy'];
|
|
43
43
|
|
|
44
|
-
const VERSION = '0.3.
|
|
44
|
+
const VERSION = '0.3.63';
|
|
45
45
|
const PROJECT_ID = 'prj_main';
|
|
46
46
|
const HUMAN_ID = 'mem_human';
|
|
47
47
|
|
package/lib/host/risk-view.js
CHANGED
|
@@ -45,6 +45,11 @@ export function riskView(state, { now = Date.now(), staleHours = 24 } = {}) {
|
|
|
45
45
|
if (member.kind !== 'agent') continue;
|
|
46
46
|
const failure = member.lastFailure;
|
|
47
47
|
if (member.status !== 'failed' && (failure === undefined || failure === null)) continue;
|
|
48
|
+
// Ledgers written before the fold cleared lastFailure on recovery:
|
|
49
|
+
// a failure older than the last recovery is not an open risk.
|
|
50
|
+
if (failure !== undefined && failure !== null
|
|
51
|
+
&& Number.isFinite(member.lastRecoveredAt) && Number.isFinite(failure.at)
|
|
52
|
+
&& member.lastRecoveredAt >= failure.at) continue;
|
|
48
53
|
failures.push({
|
|
49
54
|
kind: RISK_KINDS.FAILED_MEMBER,
|
|
50
55
|
memberId: member.id,
|
package/lib/host/service.js
CHANGED
|
@@ -725,7 +725,12 @@ export class TeamService {
|
|
|
725
725
|
if (member === undefined) fail(ERRORS.NOT_FOUND, `member ${String(memberId)} not found`);
|
|
726
726
|
const attempt = Number.isSafeInteger(failure.attempt) ? failure.attempt : (member.lastFailure?.attempt ?? 0) + 1;
|
|
727
727
|
const fatal = failure.category === 'auth' || failure.category === 'billing' || failure.category === 'policy' || failure.category === 'unknown';
|
|
728
|
-
|
|
728
|
+
// Tool-argument and provider dumps can run to kilobytes; the ledger and
|
|
729
|
+
// the risk list only ever need a human-readable first act of the error.
|
|
730
|
+
const message = typeof failure.message === 'string' && failure.message.length > 400
|
|
731
|
+
? failure.message.slice(0, 400) + '…'
|
|
732
|
+
: failure.message;
|
|
733
|
+
const recorded = { ...failure, message, attempt };
|
|
729
734
|
await this.ledger.append({
|
|
730
735
|
type: 'member/llm-failed',
|
|
731
736
|
payload: { ...recorded, memberId, fatal },
|
package/lib/ledger/fold.js
CHANGED
|
@@ -837,6 +837,9 @@ export function applyEvent(state, event) {
|
|
|
837
837
|
...member,
|
|
838
838
|
status: MEMBER_STATUS.RUNNING,
|
|
839
839
|
attempts: 0,
|
|
840
|
+
// A recovered member has no unresolved failure; keeping
|
|
841
|
+
// lastFailure alive would pin it into the risk list forever.
|
|
842
|
+
lastFailure: null,
|
|
840
843
|
lastRecoveredAt: event.at,
|
|
841
844
|
lastRecoveryAttempt: Number.isSafeInteger(payload.attempt) ? payload.attempt : member.attempts ?? 0,
|
|
842
845
|
},
|
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.63",
|
|
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",
|