@suifei/dsh-ai-team 0.3.48 → 0.3.49
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 +9 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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.49';
|
|
38
38
|
const PROJECT_ID = 'prj_main';
|
|
39
39
|
const HUMAN_ID = 'mem_human';
|
|
40
40
|
|
|
@@ -148,8 +148,10 @@ export function apply(ctx) {
|
|
|
148
148
|
const titleService = ctx.get('sessionTitle');
|
|
149
149
|
const session = sessions?.get?.(member.sessionId);
|
|
150
150
|
if (session === undefined || session === null || typeof titleService?.rename !== 'function') return;
|
|
151
|
+
const title = memberSessionTitle(member);
|
|
151
152
|
try {
|
|
152
|
-
titleService.
|
|
153
|
+
if (typeof titleService.get === 'function' && titleService.get(session)?.title === title) return;
|
|
154
|
+
titleService.rename(session, title);
|
|
153
155
|
} catch (error) {
|
|
154
156
|
console.warn('[ai-team] session title failed:', error?.message ?? error);
|
|
155
157
|
}
|
|
@@ -358,6 +360,11 @@ export function apply(ctx) {
|
|
|
358
360
|
const state = projectRuntime.service.state;
|
|
359
361
|
const project = state.projects?.[projectRuntime.id];
|
|
360
362
|
if (project === undefined || project.pmoAuto === false || project.status === 'archived') return;
|
|
363
|
+
for (const member of Object.values(state.members ?? {})) {
|
|
364
|
+
if (member.kind === 'agent' && typeof member.sessionId === 'string') {
|
|
365
|
+
await titleMemberSession(projectRuntime, member);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
361
368
|
const results = await projectRuntime.service.autoAnswerDecisions();
|
|
362
369
|
for (const result of results) {
|
|
363
370
|
const taskId = result?.item?.ref?.taskId;
|
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.49",
|
|
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",
|