dsh-agent-board 1.7.1 → 1.7.2
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/README.md +17 -9
- package/index.mjs +5 -3
- package/lib/client/board-list.js +37 -5
- package/lib/client/dashboard.js +111 -13
- package/lib/client/kernel.js +43 -10
- package/lib/client/task-detail.js +136 -9
- package/lib/client.js +327 -37
- package/lib/core.mjs +308 -20
- package/lib/dispatch.mjs +154 -12
- package/lib/health.mjs +43 -11
- package/lib/notify.mjs +42 -12
- package/lib/policy.mjs +17 -1
- package/lib/rpc.mjs +49 -11
- package/lib/session.mjs +7 -2
- package/lib/store.mjs +2 -1
- package/lib/usage.mjs +84 -3
- package/package.json +1 -1
- package/test/core.test.mjs +1544 -39
- package/test/health.test.mjs +86 -4
|
@@ -69,30 +69,155 @@
|
|
|
69
69
|
|
|
70
70
|
// 父子区块(与 DepsSection 并列):
|
|
71
71
|
// 子卡 = 父链面包屑「↳ 史诗:<父标题>」,点击回跳父卡详情;
|
|
72
|
-
// 父卡 =
|
|
72
|
+
// 父卡 = 子任务清单(状态色点 + 标题 + 状态标签,点击直达子卡详情;标题行汇总 settled/total)。
|
|
73
|
+
// 归档留档(反馈 task-muupgfot):清单**含已归档子任务**——归档后子任务不该从详情消失,
|
|
74
|
+
// 否则史诗拆分过程整段丢失、只剩一个分母缩水的数字。归档行灰化(降透明度 + 次要文字色)
|
|
75
|
+
// + 行尾「已归档」徽章,并沉底排在未归档之后(稳定排序:未归档保持 state.tasks 既有顺序);
|
|
76
|
+
// 仅降视觉权重不改交互——点击照旧进子卡详情看留档。
|
|
77
|
+
// 口径与卡片 📦 徽章同源:settled = resolved | cancelled | archived(宿主 aggregateChildStats 的
|
|
78
|
+
// settled/resolved 字段),total 含归档,所以详情与卡片永远显示同一个 N/M。
|
|
73
79
|
// 数据源是 state.tasks 按 parentId 现算(parentId 为老字段),不依赖 host 的 childStats,天然缺省兼容;
|
|
74
80
|
// 既无父也无子的普通卡整块不渲染。嵌套史诗(本身也是子卡的父卡)两段同区块上下排列。
|
|
75
81
|
function FamilySection(props) {
|
|
76
82
|
var task = props.task
|
|
77
83
|
var parentT = task.parentId ? getTask(task.parentId) : null
|
|
78
|
-
|
|
84
|
+
// 不按状态过滤(归档也要留在清单里);仅按「是否归档」稳定排序把归档沉底(V8 sort 稳定,未归档保序)
|
|
85
|
+
var kids = state.tasks.filter(function (x) { return x.parentId === task.id })
|
|
86
|
+
.sort(function (a, b) { return (a.status === 'archived' ? 1 : 0) - (b.status === 'archived' ? 1 : 0) })
|
|
79
87
|
if (!task.parentId && kids.length === 0) return null
|
|
80
|
-
var
|
|
88
|
+
var settledN = kids.filter(function (x) { return x.status === 'resolved' || x.status === 'cancelled' || x.status === 'archived' }).length
|
|
81
89
|
function jump(id) { state.detailId = id; notify() }
|
|
82
90
|
return React.createElement('div', { style: { marginBottom: 8, padding: '6px 8px', border: '1px solid ' + C.border, borderRadius: 6, background: C.card } },
|
|
83
91
|
task.parentId ? React.createElement('div', { style: { fontSize: 11, marginBottom: kids.length ? 6 : 0 } },
|
|
84
92
|
React.createElement('span', { style: { color: C.text2, fontWeight: 600 } }, '↳ 史诗:'),
|
|
85
93
|
React.createElement('span', { onClick: function () { if (parentT) jump(task.parentId) }, title: parentT ? parentT.title + ' (' + task.parentId + ')' : task.parentId, style: { color: parentT ? C.brand : C.text2, cursor: parentT ? 'pointer' : 'default', fontWeight: 600 } }, parentT && parentT.title ? parentT.title : shortId(task.parentId))) : null,
|
|
86
94
|
kids.length > 0 ? React.createElement('div', null,
|
|
87
|
-
React.createElement('div', { style: { fontSize: 11, fontWeight: 600, color: C.text2, marginBottom: 4 } }, '📦 子任务 · ' +
|
|
95
|
+
React.createElement('div', { style: { fontSize: 11, fontWeight: 600, color: C.text2, marginBottom: 4 } }, '📦 子任务 · ' + settledN + '/' + kids.length + ' 已了结'),
|
|
88
96
|
kids.map(function (x) {
|
|
89
|
-
|
|
97
|
+
var arch = x.status === 'archived'
|
|
98
|
+
return React.createElement('div', { key: x.id, onClick: function () { jump(x.id) }, title: (statusLabels[x.status] || x.status) + ' · ' + x.id + (arch ? ' · 已归档留档(点击查看)' : ''), style: { display: 'flex', alignItems: 'center', gap: 6, marginBottom: 3, fontSize: 10, cursor: 'pointer', opacity: arch ? 0.55 : 1 } },
|
|
90
99
|
React.createElement('span', { style: { width: 7, height: 7, borderRadius: '50%', background: statusColors[x.status] || C.text2, flexShrink: 0 } }),
|
|
91
|
-
React.createElement('span', { style: { color: C.brand, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', flex: 1 } }, x.title || x.id),
|
|
92
|
-
|
|
100
|
+
React.createElement('span', { style: { color: arch ? C.text2 : C.brand, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', flex: 1 } }, x.title || x.id),
|
|
101
|
+
arch
|
|
102
|
+
? React.createElement('span', { style: { fontSize: 9, padding: '0 4px', borderRadius: 2, background: C.nested, color: C.text2, border: '1px solid ' + C.border, flexShrink: 0 } }, '已归档')
|
|
103
|
+
: React.createElement('span', { style: { fontSize: 9, color: C.text2, flexShrink: 0 } }, statusLabels[x.status] || x.status))
|
|
93
104
|
})) : null)
|
|
94
105
|
}
|
|
95
106
|
|
|
107
|
+
// ===== Hooks(可选点位)· 史诗前置/后置 agent run 的编辑与状态面板(task-muuw56yf)=====
|
|
108
|
+
// 契约以 host core.normalizeHooks / mergeHooks 为准(勿凭记忆改字段名):
|
|
109
|
+
// epic.hooks = { pre: { enabled, prompt, state, runId, pending? }, post: 同构 },state ∈ idle|running|done|failed;
|
|
110
|
+
// hook run 记在 epic.runs[](role 'hook-pre'/'hook-post',字段 { role, id, at, endedAt, outcome, model })。
|
|
111
|
+
// 写入通道 = update-task RPC 的 hooks 字段(浅合并:未提交的点位保留原值,传 null 撤点位)。
|
|
112
|
+
// 三条 UI 口径:
|
|
113
|
+
// ① 老卡零渲染:既无子任务、也未声明 hooks 的普通卡整块不出现(与卡片相位徽章同一门禁);
|
|
114
|
+
// ② 权限不在 UI 判断——「hooks 仅主窗口可设」由 host 双重门禁裁决,失败原因原样 ⚠️ 回显;
|
|
115
|
+
// 客户端预判角色只会把真实错误变成灰按钮,反而更难查;
|
|
116
|
+
// ③ state 只读展示(host 状态机推进,重启可恢复);重试=把 state 置回 idle,走裁决通道,
|
|
117
|
+
// 这里只负责给 failed 一个「前往裁决」锚点,不另造裁决入口。
|
|
118
|
+
function hookRunOf(task, phase, runId) {
|
|
119
|
+
var role = 'hook-' + phase
|
|
120
|
+
// host 侧 run id 落位不对称:pre 在 spawn 成功时回填 hooks.pre.runId,post 复用 verifierRun 位
|
|
121
|
+
// (claim 占位换真 id);且两端结算都把 runId 归零——所以取不到时按角色回退「最后一条」。
|
|
122
|
+
var rid = runId || (phase === 'post' ? task.verifierRun : null)
|
|
123
|
+
var runs = Array.isArray(task.runs) ? task.runs : []
|
|
124
|
+
var hit = null
|
|
125
|
+
for (var i = 0; i < runs.length; i++) {
|
|
126
|
+
if (!runs[i] || runs[i].role !== role) continue
|
|
127
|
+
if (rid && runs[i].id !== rid) continue
|
|
128
|
+
hit = runs[i] // 顺序遍历取最后一条匹配:重试后的新 run 覆盖旧展示
|
|
129
|
+
}
|
|
130
|
+
return hit
|
|
131
|
+
}
|
|
132
|
+
function hookStateMeta(task, phase) {
|
|
133
|
+
var h = (task.hooks && task.hooks[phase]) || null
|
|
134
|
+
var st = (h && h.state) || 'idle'
|
|
135
|
+
var off = !h || !h.enabled
|
|
136
|
+
var run = hookRunOf(task, phase, h && h.runId)
|
|
137
|
+
var meta = { idle: { label: off ? '未启用' : '待运行', color: C.text2 }, running: { label: '运行中', color: C.brand }, done: { label: '已完成', color: C.ok }, failed: { label: '失败', color: C.err } }[st] || { label: String(st), color: C.text2 }
|
|
138
|
+
// 耗时:运行中 = 距 spawn 的已跑时长;已落定 = spawn → endedAt 净耗时(老 run 无 endedAt 则不显示)
|
|
139
|
+
var dur = ''
|
|
140
|
+
if (run && run.at) {
|
|
141
|
+
if (st === 'running') dur = '已跑 ' + elapsedSince(run.at)
|
|
142
|
+
else if (run.endedAt) dur = '耗时 ' + fmtDur(new Date(run.at).getTime(), new Date(run.endedAt).getTime())
|
|
143
|
+
}
|
|
144
|
+
return { state: st, off: off, label: meta.label, color: meta.color, run: run, dur: dur }
|
|
145
|
+
}
|
|
146
|
+
function HooksSection(props) {
|
|
147
|
+
var _R = React; var useState = _R.useState // 与全库组件同例:bundler 只注入 React 本体,hook 须自行解构(漏了就是运行期 ReferenceError,shell 容错层直接卸载整个 overlay——2026-10-05 详情页崩板事故)
|
|
148
|
+
var task = props.task
|
|
149
|
+
var kHooks = task.hooks || null
|
|
150
|
+
var _a = useState(''), msg = _a[0], setMsg = _a[1]
|
|
151
|
+
var _b = useState(false), saving = _b[0], setSaving = _b[1]
|
|
152
|
+
// 编辑缓冲以「卡上现值」为初值;父层以 key=task.id 挂载 → 切换任务自动重挂,缓冲不会串卡
|
|
153
|
+
var _c = useState({ pre: { enabled: !!(kHooks && kHooks.pre && kHooks.pre.enabled), prompt: (kHooks && kHooks.pre && kHooks.pre.prompt) || '' }, post: { enabled: !!(kHooks && kHooks.post && kHooks.post.enabled), prompt: (kHooks && kHooks.post && kHooks.post.prompt) || '' } }), buf = _c[0], setBuf = _c[1]
|
|
154
|
+
var kids = state.tasks.filter(function (x) { return x.parentId === task.id })
|
|
155
|
+
var declared = !!(kHooks && (kHooks.pre || kHooks.post))
|
|
156
|
+
if (kids.length === 0 && !declared) return null
|
|
157
|
+
function setPhase(ph, patch) { var nb = { pre: buf.pre, post: buf.post }; nb[ph] = Object.assign({}, nb[ph], patch); setBuf(nb) }
|
|
158
|
+
// 提交体组装(三条口径缺一都踩坑):
|
|
159
|
+
// a) prompt 清空 = 撤掉该点位:host normalizeHooks 明确拒绝空 prompt,撤点位用 null 表达才在契约内
|
|
160
|
+
// (不该把「我不想要这个 hook 了」变成一条报错);**例外**——该点位 state='running' 时不清空:
|
|
161
|
+
// run 还在飞,撤掉声明会让它的结算落到空点位(表现为白跑一轮),删除意图原样保留并回一行提示;
|
|
162
|
+
// b) 已声明点位的 state/runId/pending 原样回传:normalizeHooks 对缺省 state 归零成 idle,
|
|
163
|
+
// 不透传就等于「改一下 prompt 把在跑/已落定的 hook 打回待运行」;
|
|
164
|
+
// c) 凑不出 prompt 的点位一律提交 null(幂等删除,不凭空造点位)。
|
|
165
|
+
function payloadFor(ph) {
|
|
166
|
+
var cur = (task.hooks && task.hooks[ph]) || null
|
|
167
|
+
var b = buf[ph] || { enabled: false, prompt: '' }
|
|
168
|
+
function keep(h) { var it = { enabled: !!h.enabled, prompt: String(h.prompt || '') }; if (h.state) it.state = h.state; if (h.runId) it.runId = h.runId; if (h.pending) it.pending = true; return it }
|
|
169
|
+
if (!String(b.prompt || '').trim()) {
|
|
170
|
+
if (cur && cur.state === 'running') return { item: keep(cur), warn: ph + ' 运行中:本次不清空该点位(run 还在跑),等它跑完再撤' }
|
|
171
|
+
return { item: null }
|
|
172
|
+
}
|
|
173
|
+
var item = { enabled: !!b.enabled, prompt: String(b.prompt).slice(0, 4000) }
|
|
174
|
+
if (cur) {
|
|
175
|
+
if (cur.state) item.state = cur.state
|
|
176
|
+
if (cur.runId) item.runId = cur.runId
|
|
177
|
+
if (cur.pending) item.pending = true
|
|
178
|
+
}
|
|
179
|
+
return { item: item }
|
|
180
|
+
}
|
|
181
|
+
function save() {
|
|
182
|
+
if (saving) return
|
|
183
|
+
var pre = payloadFor('pre'), post = payloadFor('post')
|
|
184
|
+
var warns = [pre.warn, post.warn].filter(Boolean)
|
|
185
|
+
setSaving(true); setMsg('')
|
|
186
|
+
rpc('update-task', { taskId: task.id, hooks: { pre: pre.item, post: post.item } }).then(function (r) {
|
|
187
|
+
setSaving(false)
|
|
188
|
+
if (r && r.ok === false) { setMsg('⚠️ ' + (r.error || '保存失败')); return }
|
|
189
|
+
setMsg(warns.length ? '⚠️ ' + warns.join(';') : '✅ 已保存 hooks 配置')
|
|
190
|
+
fetchTasks()
|
|
191
|
+
}).catch(function (e) { setSaving(false); setMsg('⚠️ ' + String(e)) })
|
|
192
|
+
}
|
|
193
|
+
// 「前往裁决」= 同页锚点跳转(裁决区 id 固定 tskb-escalation,由 DetailView 渲染);
|
|
194
|
+
// hook 失败时 host 已把 epic 转 blocked 并挂好 escalation,这里只把视线送过去。
|
|
195
|
+
function goArbitration() { var el = document.getElementById('tskb-escalation'); if (el && el.scrollIntoView) el.scrollIntoView({ block: 'center' }) }
|
|
196
|
+
function phaseRow(ph, title, hint) {
|
|
197
|
+
var m = hookStateMeta(task, ph)
|
|
198
|
+
var b = buf[ph] || { enabled: false, prompt: '' }
|
|
199
|
+
return React.createElement('div', { key: ph, style: { marginBottom: 6, padding: '5px 7px', border: '1px solid ' + C.border, borderRadius: 5, background: C.nested } },
|
|
200
|
+
React.createElement('div', { style: { display: 'flex', alignItems: 'center', gap: 6, flexWrap: 'wrap', marginBottom: 4 } },
|
|
201
|
+
React.createElement('label', { style: { fontSize: 11, fontWeight: 600, color: C.text, display: 'inline-flex', alignItems: 'center', gap: 4, cursor: 'pointer' } },
|
|
202
|
+
React.createElement('input', { type: 'checkbox', checked: !!b.enabled, onChange: function (e) { setPhase(ph, { enabled: e.target.checked }) }, title: '启用该点位(停用后 host 全链路跳过它)' }),
|
|
203
|
+
title),
|
|
204
|
+
React.createElement('span', { title: 'state 由 host 状态机推进(写在卡上,重启可恢复);失败后重试=把 state 置回 idle,走裁决通道', style: { fontSize: 9, padding: '0 5px', borderRadius: 3, background: 'color-mix(in srgb, ' + m.color + ' 16%, transparent)', color: m.color, fontWeight: 600 } }, m.label),
|
|
205
|
+
m.dur ? React.createElement('span', { style: { fontSize: 9, color: C.text2 } }, m.dur) : null,
|
|
206
|
+
m.run && m.run.id ? React.createElement('button', { onClick: function () { if (uiWorkspaceSvc) uiWorkspaceSvc.openSession(m.run.id) }, title: '查看该 hook run 的会话(' + m.run.id + (m.run.model ? ' · ' + m.run.model : '') + ')', style: { fontSize: 9, padding: '1px 6px', border: '1px solid ' + C.brand, borderRadius: 3, background: 'transparent', color: C.brand, cursor: 'pointer' } }, '→ 查看会话') : null,
|
|
207
|
+
m.state === 'failed' ? React.createElement('button', { onClick: goArbitration, title: '跳到本页裁决区:重试(置回 idle)/ 跳过(置 done 放行)/ 放弃(终止史诗)', style: { fontSize: 9, padding: '1px 6px', border: 'none', borderRadius: 3, background: C.err, color: C_INV, cursor: 'pointer', fontWeight: 600 } }, '前往裁决') : null),
|
|
208
|
+
React.createElement('textarea', { value: b.prompt, onChange: function (e) { setPhase(ph, { prompt: e.target.value }) }, rows: 2, placeholder: '补充指令(可选)——前置=让子任务具备开跑条件;后置=把这批活收口。具体动作由 hook agent 自行决策', style: { width: '100%', fontSize: 11, padding: '4px 6px', border: '1px solid ' + C.border2, borderRadius: 4, background: C.card, color: C.text, resize: 'vertical', boxSizing: 'border-box', fontFamily: 'inherit' } }),
|
|
209
|
+
React.createElement('div', { style: { fontSize: 9, color: C.text2, marginTop: 3, lineHeight: 1.6 } }, hint))
|
|
210
|
+
}
|
|
211
|
+
return React.createElement('div', { style: { marginBottom: 8, padding: '6px 8px', border: '1px solid ' + C.border, borderRadius: 6, background: C.card } },
|
|
212
|
+
React.createElement('div', { style: { fontSize: 11, fontWeight: 600, color: C.text2, marginBottom: 4, display: 'flex', alignItems: 'center', gap: 4 } }, ic('zap', 11), 'Hooks(可选点位)'),
|
|
213
|
+
phaseRow('pre', '⏳ 前置(pre)', '让子任务具备开跑条件:未完成前该史诗的子任务一张都不派(串行闸门)。'),
|
|
214
|
+
phaseRow('post', '🧪 收尾(post)', '把这批活收口:全部子任务了结后跑一遍,完成后史诗才转验证中。'),
|
|
215
|
+
React.createElement('div', { style: { display: 'flex', alignItems: 'center', gap: 6, flexWrap: 'wrap' } },
|
|
216
|
+
React.createElement('button', { onClick: save, disabled: saving, title: '保存到卡上(update-task RPC,hooks 字段浅合并)', style: { fontSize: 10, padding: '3px 8px', border: 'none', borderRadius: 3, background: C.brand, color: C_INV, cursor: saving ? 'default' : 'pointer', opacity: saving ? 0.6 : 1, fontWeight: 600, display: 'inline-flex', alignItems: 'center', gap: 3 } }, saving ? '保存中…' : [ic('save', 10), ' 保存 hooks']),
|
|
217
|
+
msg ? React.createElement('span', { style: { fontSize: 10, color: C.text2 } }, msg) : null),
|
|
218
|
+
React.createElement('div', { style: { fontSize: 9, color: C.text2, marginTop: 4, lineHeight: 1.6 } }, '每个点位是一次真实 agent 运行(不是声明式命令):prompt 只给薄框架契约与上下文,动作由 hook agent 自行决策,吃不准会歧义上报;失败即转阻塞等人裁决(重试/跳过/放弃),不会自动重跑。清空 prompt 保存 = 撤掉该点位。hooks 仅主窗口可设(host 门禁,失败原因原样回显)。'))
|
|
219
|
+
}
|
|
220
|
+
|
|
96
221
|
function DetailView() {
|
|
97
222
|
var _R = React; var useState = _R.useState, useEffect = _R.useEffect; var task = getTask(state.detailId)
|
|
98
223
|
var _a = useState(task ? task.title : ''), editTitle = _a[0], setEditTitle = _a[1]; var _b = useState(task ? task.description || '' : ''), editDesc = _b[0], setEditDesc = _b[1]; var _c = useState(false), saving = _c[0], setSaving = _c[1]; var _d = useState(state.boardMode), mode = _d[0], setMode = _d[1]
|
|
@@ -115,7 +240,7 @@
|
|
|
115
240
|
if (r && r.ok === false && r.error === 'touches-conflict') {
|
|
116
241
|
var ids = Array.isArray(r.conflicts) ? r.conflicts : []
|
|
117
242
|
var names = ids.map(function (id) { var t2 = getTask(id); return (t2 ? t2.title : id) + ' (' + id + ')' }).join('、')
|
|
118
|
-
if (window.confirm('⚠️
|
|
243
|
+
if (window.confirm('⚠️ 文件锁冲突:以下任务正持有同一批文件(touches 重叠;锁持到归档——verifying/resolved 卡也在持锁,等其归档即自动放行):\n\n' + (names || ids.join('、')) + '\n\n强行并行可能互相覆盖改动/diff 冲突。仍要越权派发吗?')) return send(true)
|
|
119
244
|
setActionMsg('⛔ 已取消派发(等文件锁释放,或调整 touches 声明)')
|
|
120
245
|
return { ok: false, cancelled: true }
|
|
121
246
|
}
|
|
@@ -171,7 +296,7 @@
|
|
|
171
296
|
React.createElement('span', null, '已运行 ' + elapsedSince(task.claimedAt) + '(软超时 ' + state.softTimeoutMin + ' 分提醒 · 硬超时 ' + state.hardTimeoutMin + ' 分自动终止)'),
|
|
172
297
|
elapsedMin(task.claimedAt) > state.softTimeoutMin ? React.createElement('span', { style: { color: C.warn, fontWeight: 600 } }, '⏱ 已超软超时') : null,
|
|
173
298
|
React.createElement('button', { onClick: doTerminate, title: '终止该执行 Agent,任务回 pending 重新排队', style: { fontSize: 10, padding: '2px 8px', border: '1px solid ' + C.err, borderRadius: 3, background: 'transparent', color: C.err, cursor: 'pointer', marginLeft: 'auto' } }, '⏹ 立即终止')) : null,
|
|
174
|
-
task.escalation ? React.createElement('div', { style: { marginBottom: 8, padding: '8px 10px', border: '1px solid ' + C.err, borderRadius: 6, background: 'color-mix(in srgb, ' + C.err + ' 8%, transparent)' } },
|
|
299
|
+
task.escalation ? React.createElement('div', { id: 'tskb-escalation', style: { marginBottom: 8, padding: '8px 10px', border: '1px solid ' + C.err, borderRadius: 6, background: 'color-mix(in srgb, ' + C.err + ' 8%, transparent)' } },
|
|
175
300
|
React.createElement('div', { style: { fontSize: 12, fontWeight: 700, color: C.err, marginBottom: 4, display: 'flex', alignItems: 'center', gap: 4 } }, ic('alert-triangle', 13), 'Worker 上报歧义 — 等待主窗口裁决'),
|
|
176
301
|
React.createElement('div', { style: { fontSize: 11, color: C.text, marginBottom: 6, whiteSpace: 'pre-wrap', maxHeight: 160, overflowY: 'auto' } }, task.escalation.question),
|
|
177
302
|
React.createElement('div', { style: { fontSize: 10, color: C.text2, marginBottom: 6 } }, '上报于 ' + ago(task.escalation.at) + ' · ' + (task.escalation.by || '')),
|
|
@@ -214,6 +339,8 @@
|
|
|
214
339
|
'📎 调研注入: ' + (empty ? '无调研注入——Worker 需自行定位,建议补 contextFiles/contextNotes' : parts.join(' · ')))
|
|
215
340
|
})(),
|
|
216
341
|
React.createElement(FamilySection, { task: task }),
|
|
342
|
+
// Hooks 区(史诗可选点位):key=task.id 保证切换任务时重挂,编辑缓冲不串卡
|
|
343
|
+
React.createElement(HooksSection, { key: task.id, task: task }),
|
|
217
344
|
React.createElement(DepsSection, { task: task }),
|
|
218
345
|
task.acceptance ? React.createElement('div', { style: { fontSize: 11, color: C.text, marginBottom: 6, padding: '5px 8px', background: C.nested, borderRadius: 4, borderLeft: '2px solid ' + C.ok, fontFamily: 'monospace', display: 'flex', alignItems: 'center', gap: 4 } }, ic('flask-conical', 11), '硬性验收: ' + task.acceptance) : null,
|
|
219
346
|
task.resolution ? React.createElement('div', { style: { fontSize: 11, color: C.text, marginBottom: 6, padding: '5px 8px', background: C.nested, borderRadius: 4, borderLeft: '2px solid ' + C.warn, maxHeight: 120, overflowY: 'auto', whiteSpace: 'pre-wrap' } }, '📝 ' + task.resolution) : null,
|