@suifei/dsh-ai-team 0.3.70 → 0.3.71
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 +4 -0
- package/client.js +19 -17
- package/index.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.71 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- **【致命】工作台 #310 崩溃修复(用户实证)**:批量取消的忙碌标志 useState 被放在了 Workbench 的 Skeleton early-return **之后**——loading→ready 重渲染时 hooks 数量增多,触发 React #310 白屏。移到 early-return 之前的 state 区。渲染 E2E 的 React mock 同步加 **#310 守卫**:同一组件跨渲染 hooks 数量增多立即抛错(并在 0.3.69 类改动合入前即拦截)。
|
|
6
|
+
|
|
3
7
|
## 0.3.70 — 2026-11-11
|
|
4
8
|
|
|
5
9
|
- **项目全局掌控:启动 / 停止 / 交接**(用户需求):新命令 `project.runState`(Human-only,账本留痕)——**停止**:PMO tick 与事件唤醒双门停止一切派发(正在执行的子任务自然完成,私信仍可);**启动**:空项目显式启动解除 P1a 等待门(Human 点启动即指令)或停止的项目继续开工(下一 tick ≤60s 生效)。新命令 `project.handoff`:按时序生成**交接文档**(Human 指令时序 + 任务全量状态/证据/QA + Thread 摘要 + 接手提示)写入工作目录 `docs/HANDOFF-<时间戳>.md`,账本留痕路径。项目头新增「项目运行 · 开/停止中」与「生成交接文档」按钮(chatGate/archive 旁)。bootstrap 下发 runState。
|
package/client.js
CHANGED
|
@@ -221,14 +221,14 @@ window.__ModuleLoader__.load({
|
|
|
221
221
|
chatGateClosedPlaceholder: '对话通道已关闭',
|
|
222
222
|
chatGateOpened: 'Human 对话通道已开启:私信将直达成员下一轮。',
|
|
223
223
|
chatGateClosedShort: 'Human 对话通道已关闭。',
|
|
224
|
-
routingHint: '成员的原生会话由团队路由驱动,宿主不接受直接输入;请用下方私信与成员对话(下一轮生效)。',
|
|
225
|
-
runOn: '项目运行 · 开',
|
|
226
|
-
runOff: '项目运行 · 停止中',
|
|
227
|
-
runStateHint: '停止:当前子任务完成后停止派发(不再派发新任务/心跳/升级);启动:空项目开始或停止的项目继续开工',
|
|
228
|
-
runStarted: '项目已启动:PMO 将在下一个巡检周期开工。',
|
|
229
|
-
runStopped: '项目已停止:正在执行的子任务自然完成后不再派发。',
|
|
230
|
-
handoffBtn: '生成交接文档',
|
|
231
|
-
handoffHint: '按时序生成项目交接文档(Human 指令 + 任务全量),写入工作目录 docs/ 下',
|
|
224
|
+
routingHint: '成员的原生会话由团队路由驱动,宿主不接受直接输入;请用下方私信与成员对话(下一轮生效)。',
|
|
225
|
+
runOn: '项目运行 · 开',
|
|
226
|
+
runOff: '项目运行 · 停止中',
|
|
227
|
+
runStateHint: '停止:当前子任务完成后停止派发(不再派发新任务/心跳/升级);启动:空项目开始或停止的项目继续开工',
|
|
228
|
+
runStarted: '项目已启动:PMO 将在下一个巡检周期开工。',
|
|
229
|
+
runStopped: '项目已停止:正在执行的子任务自然完成后不再派发。',
|
|
230
|
+
handoffBtn: '生成交接文档',
|
|
231
|
+
handoffHint: '按时序生成项目交接文档(Human 指令 + 任务全量),写入工作目录 docs/ 下',
|
|
232
232
|
handoffDone: '交接文档已生成:{path}',
|
|
233
233
|
cancelAllPending: '取消全部待处理({n})',
|
|
234
234
|
cancelAllHint: '批量取消当前全部待处理任务(逐卡取消并汇总结果)',
|
|
@@ -634,14 +634,14 @@ window.__ModuleLoader__.load({
|
|
|
634
634
|
chatGateClosedPlaceholder: 'Chat channel closed',
|
|
635
635
|
chatGateOpened: 'Human chat channel opened: DMs reach members next round.',
|
|
636
636
|
chatGateClosedShort: 'Human chat channel closed.',
|
|
637
|
-
routingHint: 'Member native sessions are driven by team routing; the host rejects direct input. Use the DM below to talk to a member (effective next round).',
|
|
638
|
-
runOn: 'Project run · on',
|
|
639
|
-
runOff: 'Project run · stopping',
|
|
640
|
-
runStateHint: 'Stop: finish the in-flight subtask then halt dispatch (no new tasks/heartbeats/escalations); Start: kick an empty project or resume a stopped one',
|
|
641
|
-
runStarted: 'Project started: PMO begins at the next tick.',
|
|
642
|
-
runStopped: 'Project stopped: in-flight subtasks finish, then dispatch halts.',
|
|
643
|
-
handoffBtn: 'Generate handoff doc',
|
|
644
|
-
handoffHint: 'Generate a chronological handoff document (Human instructions + all task info) into the workspace docs/ folder',
|
|
637
|
+
routingHint: 'Member native sessions are driven by team routing; the host rejects direct input. Use the DM below to talk to a member (effective next round).',
|
|
638
|
+
runOn: 'Project run · on',
|
|
639
|
+
runOff: 'Project run · stopping',
|
|
640
|
+
runStateHint: 'Stop: finish the in-flight subtask then halt dispatch (no new tasks/heartbeats/escalations); Start: kick an empty project or resume a stopped one',
|
|
641
|
+
runStarted: 'Project started: PMO begins at the next tick.',
|
|
642
|
+
runStopped: 'Project stopped: in-flight subtasks finish, then dispatch halts.',
|
|
643
|
+
handoffBtn: 'Generate handoff doc',
|
|
644
|
+
handoffHint: 'Generate a chronological handoff document (Human instructions + all task info) into the workspace docs/ folder',
|
|
645
645
|
handoffDone: 'Handoff document written: {path}',
|
|
646
646
|
cancelAllPending: 'Cancel all pending ({n})',
|
|
647
647
|
cancelAllHint: 'Batch-cancel every pending task (one by one, with a summary)',
|
|
@@ -2629,6 +2629,9 @@ window.__ModuleLoader__.load({
|
|
|
2629
2629
|
const [replyBase, setReplyBase] = React.useState(null);
|
|
2630
2630
|
// R-06 决策回流高亮:主对话中被指认的 stream 消息 id。
|
|
2631
2631
|
const [streamHighlight, setStreamHighlight] = React.useState(null);
|
|
2632
|
+
// P1b 批量取消的忙碌标志——必须位于 Skeleton early-return 之前
|
|
2633
|
+
// (React hooks 数量在渲染间必须恒定,否则 #310)。
|
|
2634
|
+
const [cancelAllBusy, setCancelAllBusy] = React.useState(false);
|
|
2632
2635
|
// 自绘确认/输入对话框(替代原生 prompt/confirm,观感与宿主一致)。
|
|
2633
2636
|
// dialog: { mode: 'confirm'|'prompt'|'choice', title, body, placeholder,
|
|
2634
2637
|
// value, options, resolve } — resolve(false|null|字符串)。
|
|
@@ -2881,7 +2884,6 @@ window.__ModuleLoader__.load({
|
|
|
2881
2884
|
const thread = threadFor(data, selectedTask?.id);
|
|
2882
2885
|
const quadrants = deriveQuadrants(data);
|
|
2883
2886
|
// P1b:批量取消全部待处理(逐卡 task.cancel,Human-only;汇总结果)。
|
|
2884
|
-
const [cancelAllBusy, setCancelAllBusy] = React.useState(false);
|
|
2885
2887
|
async function cancelAllPending(pendingTasks) {
|
|
2886
2888
|
if (!Array.isArray(pendingTasks) || pendingTasks.length === 0) return;
|
|
2887
2889
|
setCancelAllBusy(true);
|
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.71';
|
|
45
45
|
const PROJECT_ID = 'prj_main';
|
|
46
46
|
const HUMAN_ID = 'mem_human';
|
|
47
47
|
|
|
@@ -386,9 +386,11 @@ export function apply(ctx, config = {}) {
|
|
|
386
386
|
|| null;
|
|
387
387
|
const wakeFromResult = async (projectRuntime, result, actor = {}) => {
|
|
388
388
|
if (projectRuntime === null || projectRuntime === undefined) return;
|
|
389
|
-
// P6 停止门(事件 hook 侧):stopped
|
|
389
|
+
// P6 停止门(事件 hook 侧):stopped 项目停止**自动派发**;Human
|
|
390
|
+
// 主动触发的唤醒(如私信 member.message)仍放行——停止的是机器
|
|
391
|
+
// 驱动,不断 Human 通道。
|
|
390
392
|
const gateProject = projectRuntime.service.state.projects?.[projectRuntime.id];
|
|
391
|
-
if (gateProject !== undefined && gateProject.runState === 'stopped') return;
|
|
393
|
+
if (gateProject !== undefined && gateProject.runState === 'stopped' && actor?.kind !== 'human') return;
|
|
392
394
|
const plans = planWakes(projectRuntime.service.state, result, actor);
|
|
393
395
|
if (plans.length === 0) return;
|
|
394
396
|
// Window eviction: a key older than this horizon can no longer dedupe
|
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.71",
|
|
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",
|