@suifei/dsh-ai-team 0.3.49 → 0.3.50
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 +5 -0
- package/index.js +1 -1
- package/lib/host/service.js +6 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.50 — 2026-11-10
|
|
4
|
+
|
|
5
|
+
- PMO 自动决策覆盖无结构化问题的 `decision_required`:按当前 Task/Thread 最高价值路径推进并 ack,不再留 unread;
|
|
6
|
+
- 收件箱不再因为 Agent 只发 decision_required、不带 questions 而卡住。
|
|
7
|
+
|
|
3
8
|
## 0.3.49 — 2026-11-10
|
|
4
9
|
|
|
5
10
|
- 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.
|
|
37
|
+
const VERSION = '0.3.50';
|
|
38
38
|
const PROJECT_ID = 'prj_main';
|
|
39
39
|
const HUMAN_ID = 'mem_human';
|
|
40
40
|
|
package/lib/host/service.js
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
3
|
+
"version": "0.3.50",
|
|
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",
|