@suifei/dsh-ai-team 0.3.62 → 0.3.64
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 +10 -0
- package/client.js +1 -1
- 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,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.64 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- **风险清单失败行去刷屏(根治)**:0.3.63 的 240 字符行内截断在真实 tool-call 错误串下仍占据整卡(用户截图实证)。改为行内**只渲染人话分类**(如「未知失败」),完整技术原文移入 hover title(点「成员资料」看成员详情);管理视图的信息密度回归「一屏可扫读」。渲染 E2E 同步加防刷屏断言:任何 UI children 字符串不得超过 200 字符——超长诊断原文只允许走 title 属性,此类回归今后提交前即被拦截。
|
|
6
|
+
|
|
7
|
+
## 0.3.63 — 2026-11-11
|
|
8
|
+
|
|
9
|
+
- 修复风险清单「失败」永挂:成员恢复后 `member/recovered` 此前不清 `lastFailure`,一次瞬时 tool/LLM 失败会永远钉在 Human 的风险清单;fold 恢复即清除 + 风险视图对旧账本防御(failure 早于 lastRecoveredAt 不计);
|
|
10
|
+
- 失败消息入库截断 400 字符(3KB tool dump 不再轰击账本与 UI);前端风险行截断 240 + hover 全文;
|
|
11
|
+
- 实测案例:玄策 10:30 的 edit 参数 JSON 截断,08:26 已恢复三连,风险清单仍挂昨日原文——本版本后此类瞬态失败自动出局。
|
|
12
|
+
|
|
3
13
|
## 0.3.62 — 2026-11-11
|
|
4
14
|
|
|
5
15
|
- **【致命】工作台渲染崩溃修复**:主对话流 `StreamMessage` 调用处的 `onOpenProfile` 简写属性引用了 Workbench 作用域中不存在的标识符(正确目标是 `openProfile` 函数),首次渲染即抛 `ReferenceError: onOpenProfile is not defined` 使整个工作台白屏。改为显式 `onOpenProfile: openProfile`(与 MemberView 调用点一致)。`node --check` 对简写属性语法不报错,静态检查存在盲区;
|
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'
|
|
3750
|
+
h('span', { className: 'at-peoplefail', title: row.message ?? '' }, failureHuman(t, row.category ?? 'unknown')),
|
|
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'));
|
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.64';
|
|
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.64",
|
|
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",
|