@suifei/dsh-ai-team 0.3.49 → 0.3.51

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.51 — 2026-11-10
4
+
5
+ - 唤醒后再同步一次 session 标题:cold session 在唤醒前无法 rename,唤醒变 live 后补同步;
6
+ - 避免 QA/闲置 Agent 长期保留旧任务标题。
7
+
8
+ ## 0.3.50 — 2026-11-10
9
+
10
+ - PMO 自动决策覆盖无结构化问题的 `decision_required`:按当前 Task/Thread 最高价值路径推进并 ack,不再留 unread;
11
+ - 收件箱不再因为 Agent 只发 decision_required、不带 questions 而卡住。
12
+
3
13
  ## 0.3.49 — 2026-11-10
4
14
 
5
15
  - PMO 每分钟同步 agent session 标题为 `Agent(角色)`,覆盖历史任务标题;
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.49';
37
+ const VERSION = '0.3.51';
38
38
  const PROJECT_ID = 'prj_main';
39
39
  const HUMAN_ID = 'mem_human';
40
40
 
@@ -340,6 +340,8 @@ export function apply(ctx) {
340
340
  });
341
341
  const delivered = await runtime.wake(member, { prompt: await wakePrompt(plan, member) });
342
342
  messageId = delivered.messageId ?? null;
343
+ // A cold session cannot be renamed before wake; retry once it is live.
344
+ await titleMemberSession(projectRuntime, member);
343
345
  }
344
346
  await projectRuntime.service.recordWake(plan.memberId, {
345
347
  ok: true, taskId: plan.taskId, reason: plan.reason, messageId,
@@ -924,12 +924,11 @@ export class TeamService {
924
924
  const items = Object.values(this.state.inbox ?? {}).filter((item) =>
925
925
  item.memberId === humanId
926
926
  && item.type === 'decision_required'
927
- && item.state === 'unread'
928
- && Array.isArray(item.ref?.questions)
929
- && item.ref.questions.length > 0);
927
+ && item.state === 'unread');
930
928
  const results = [];
931
929
  for (const item of items) {
932
- const answers = chooseDecisionAnswers(item.ref.questions);
930
+ const questions = Array.isArray(item.ref?.questions) ? item.ref.questions : [];
931
+ const answers = chooseDecisionAnswers(questions);
933
932
  results.push(await this.autoAnswerDecision(item, answers));
934
933
  }
935
934
  return results;
@@ -939,7 +938,9 @@ export class TeamService {
939
938
  const taskId = typeof item.ref?.taskId === 'string' ? item.ref.taskId : null;
940
939
  const task = taskId === null ? undefined : this.state.tasks?.[taskId];
941
940
  const questionById = new Map((item.ref?.questions ?? []).map((question) => [question.id, question.text]));
942
- const lines = answers.map((answer) => `- ${questionById.get(answer.id) ?? answer.id}: ${answer.value}`);
941
+ const lines = answers.length > 0
942
+ ? answers.map((answer) => `- ${questionById.get(answer.id) ?? answer.id}: ${answer.value}`)
943
+ : ['- 无结构化问题:按当前 Task/Thread 的最高价值路径推进,不等待 Human。'];
943
944
  const body = `【PMO 自动决策】按最高价值建议执行,不需要 Human 再确认:\n${lines.join('\n')}`;
944
945
  let entry = null;
945
946
  if (task !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.3.49",
3
+ "version": "0.3.51",
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",