@suifei/dsh-ai-team 0.4.103 → 0.4.105
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,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.105 - 2026-11-16
|
|
4
|
+
|
|
5
|
+
**夜间 SkillOpt 环(handoff 后端)由评审官自动作答,不再停在「有待回答」**
|
|
6
|
+
|
|
7
|
+
- handoff 后端每轮把需要模型回答的调用写进 `<workspace>/.skillopt-sleep-handoff/pending.json` 后以退出码 3 停下,
|
|
8
|
+
此前插件里没有人作答——il2c 实机切到 `dsh` 来源后第一晚就停在 10 题待答,计划任务结果码一直是 3;
|
|
9
|
+
- 新增 `lib/skillopt/handoff-answerer.js`,由 PMO tick 驱动(与 job 收割一样不受 pmoAuto/停止门约束):
|
|
10
|
+
每题起一个评审官身份的**一次性**子代理作答(引擎要求每题新上下文,长驻成员会话的历史会污染留出验证门),
|
|
11
|
+
最多 3 个并行;空答或 15 分钟未答重问一次,仍失败记 `skillopt.handoff.blocked`、不重跑;
|
|
12
|
+
- 收齐后重跑计划任务写下的 `<workspace>/.skillopt-sleep/run.ps1`(与 03:17 触发同一条命令,输出进 cron.log),
|
|
13
|
+
引擎从答案目录续跑;换一批题就再答再跑,同一批只重跑一次(未推进记 `skillopt.handoff.stalled`);
|
|
14
|
+
- 日志:`skillopt.handoff.ask/answered/empty/timeout/blocked/rerun/rerun.done/stalled`;
|
|
15
|
+
- 测试:`test/skillopt-handoff-answerer.test.js` 4 例;
|
|
16
|
+
|
|
17
|
+
## 0.4.104 - 2026-11-16
|
|
18
|
+
|
|
19
|
+
**切到 dsh 来源后的两处实机缺陷**
|
|
20
|
+
|
|
21
|
+
- **handoff 夜间空钉永久复用**:handoff 后端把一轮采集到的会话钉在 `.skillopt-sleep-handoff/digests.json`,
|
|
22
|
+
下一轮直接复用以保护已有回答。「没挖出任务」分支只推进采集窗、不撤钉——il2c 14:26 一次 `auto` 来源的运行
|
|
23
|
+
留下空钉(0 个会话),之后每晚都复用它,切到 `dsh` 后 10 个在册会话照样 `no tasks mined`。现在无任务即撤钉
|
|
24
|
+
(此时没有待回答的调用,撤钉不丢任何东西);
|
|
25
|
+
- **「列出已排程的项目」仍为空**:0.4.103 修了解码,但 schtasks 报的是任务路径 `"\SkillOpt-Sleep-…"`,按裸前缀
|
|
26
|
+
匹配永远不中。解析抽成 `_parse_win_task_names` 并去掉前导 `\`;实机 A/B:修复前 `[]`,修复后列出
|
|
27
|
+
`SkillOpt-Sleep-12d591e63a2d03aa9d7f`;
|
|
28
|
+
- 测试:`test/skillopt-dsh-source.test.js` 新增 2 例(隔离 HOME 跑两晚 `run --backend handoff --source dsh`,去掉修复即
|
|
29
|
+
失败;用实机 schtasks 输出样本解析任务名);
|
|
30
|
+
|
|
3
31
|
## 0.4.103 - 2026-11-16
|
|
4
32
|
|
|
5
33
|
**夜间 SkillOpt 环能从 DSH 会话里学习**
|
package/index.js
CHANGED
|
@@ -44,7 +44,9 @@ import { isJobExpired, listJobs, readJob, writeJob } from './lib/skillopt/jobs.j
|
|
|
44
44
|
|
|
45
45
|
/** 评审通道 job 的兜底 TTL:与子代理通道(jobs.js JOB_TTL_MS)保持一致。 */
|
|
46
46
|
const REVIEW_JOB_TTL_MS = 30 * 60 * 1000;
|
|
47
|
-
import { reconcileJobs } from './lib/skillopt/job-runner.js';
|
|
47
|
+
import { observeChild, reconcileJobs } from './lib/skillopt/job-runner.js';
|
|
48
|
+
import { HANDOFF_DIR, stepHandoff } from './lib/skillopt/handoff-answerer.js';
|
|
49
|
+
import { execFile } from 'node:child_process';
|
|
48
50
|
import { collectReview, startReview } from './lib/skillopt/review-runner.js';
|
|
49
51
|
import { REVIEWER_NAME } from './lib/skillopt/reviewer.js';
|
|
50
52
|
import { createMemberPermissionGuard } from './lib/host/permission-guard.js';
|
|
@@ -1137,6 +1139,43 @@ export function apply(ctx, config = {}) {
|
|
|
1137
1139
|
}
|
|
1138
1140
|
}
|
|
1139
1141
|
};
|
|
1142
|
+
// 夜间 SkillOpt 环(handoff 后端)停在「有待回答的调用」时,由评审官身份的一次性
|
|
1143
|
+
// 子代理逐题作答并重跑计划任务(lib/skillopt/handoff-answerer.js)。与 job 收割
|
|
1144
|
+
// 一样不受 pmoAuto/停止门约束:夜间环是 Human 排的,与 PMO 派发无关。
|
|
1145
|
+
// 不 await:重跑引擎可能耗时,不能拖住 tick;同一工作区同时只推进一步。
|
|
1146
|
+
const handoffBusy = new Set();
|
|
1147
|
+
const answerHandoff = (projectRuntime) => {
|
|
1148
|
+
const workspace = String(projectRuntime?.service?.state?.projects?.[projectRuntime.id]?.workspacePath ?? '').trim();
|
|
1149
|
+
if (workspace === '' || handoffBusy.has(workspace) || !existsSync(join(workspace, HANDOFF_DIR, 'pending.json'))) return;
|
|
1150
|
+
handoffBusy.add(workspace);
|
|
1151
|
+
stepHandoff({
|
|
1152
|
+
workspace,
|
|
1153
|
+
deps: {
|
|
1154
|
+
now: () => Date.now(),
|
|
1155
|
+
diag: (row) => diag.append(row),
|
|
1156
|
+
startChild: async (label, request) => {
|
|
1157
|
+
const parentInfo = await ensureParent(projectRuntime);
|
|
1158
|
+
const child = await serviceOf(ctx, 'subagents').startActivation(activationSpec({
|
|
1159
|
+
provider: resolveSubagentProviderName(serviceOf(ctx, 'subagents'), config?.subagentProviderName),
|
|
1160
|
+
label,
|
|
1161
|
+
request: { cwd: request.cwd, prompt: [{ type: 'text', text: request.prompt }], parent: parentInfo?.agent },
|
|
1162
|
+
delivery: 'parent',
|
|
1163
|
+
signal: new AbortController().signal,
|
|
1164
|
+
}));
|
|
1165
|
+
return { childId: child.childId, outputStart: child.outputStart ?? null };
|
|
1166
|
+
},
|
|
1167
|
+
observe: (childId, outputStart) => observeChild(ctx, childId, outputStart),
|
|
1168
|
+
rerun: (runScript) => new Promise((resolve) => {
|
|
1169
|
+
execFile('powershell.exe', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', runScript], { windowsHide: true, timeout: 30 * 60 * 1000 }, (error) => {
|
|
1170
|
+
resolve({ exitCode: error ? (typeof error.code === 'number' ? error.code : null) : 0 });
|
|
1171
|
+
});
|
|
1172
|
+
}),
|
|
1173
|
+
},
|
|
1174
|
+
}).catch((error) => {
|
|
1175
|
+
diag.append({ ev: 'skillopt.handoff.tick.fail', workspace, message: error?.message ?? String(error) });
|
|
1176
|
+
}).finally(() => handoffBusy.delete(workspace));
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1140
1179
|
const pmoTick = async (projectRuntime) => {
|
|
1141
1180
|
if (projectRuntime === null || projectRuntime === undefined) return;
|
|
1142
1181
|
// 归档修复重试点:boot 时 workspaceRegistry 往往还没 active,等 tick
|
|
@@ -1179,6 +1218,7 @@ export function apply(ctx, config = {}) {
|
|
|
1179
1218
|
diag.append({ ev: 'skillopt.job.tick.fail', message: error?.message ?? String(error) });
|
|
1180
1219
|
}
|
|
1181
1220
|
if (reconciled === false) diag.append({ ev: 'skillopt.reconcile.skip', projectId: projectRuntime.id, reason: 'in-flight' });
|
|
1221
|
+
answerHandoff(projectRuntime);
|
|
1182
1222
|
// 门禁必须在 await 之后重新取:reconcileJobs 可能耗时数秒,期间 Human
|
|
1183
1223
|
// 可能已经停用 PMO / 归档 / 停止项目,用 await 之前的快照会继续写账本。
|
|
1184
1224
|
const project = projectRuntime.service.state.projects?.[projectRuntime.id];
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SkillOpt-Sleep handoff 后端的自动应答:夜间环用 handoff 后端时,引擎把需要模型
|
|
3
|
+
* 回答的调用写进 `<workspace>/.skillopt-sleep-handoff/pending.json` 后以退出码 3
|
|
4
|
+
* 停下,等有人把每题的原文答案写到 `answers/<id>.md` 再重跑同一条命令。
|
|
5
|
+
* 无人应答时夜间环永远停在这里(il2c 实机:10 题等答、结果码一直是 3)。
|
|
6
|
+
*
|
|
7
|
+
* 本模块由 PMO tick 驱动,评审官身份应答:
|
|
8
|
+
* - 每题起一个**一次性**子代理(上下文干净)——引擎要求每题在新上下文里回答,
|
|
9
|
+
* 长驻成员会话的历史会污染留出验证门;
|
|
10
|
+
* - 收齐后重跑计划任务写下的 `<workspace>/.skillopt-sleep/run.ps1`(与 03:17
|
|
11
|
+
* 触发的是同一条命令,输出照旧进 cron.log),引擎从答案目录续跑;
|
|
12
|
+
* - 同一批题只重跑一次:引擎消费了答案会换一批题(或跑完归档 handoff 目录),
|
|
13
|
+
* 批次不变说明重跑没推进,记一行停滞日志而不是反复重跑。
|
|
14
|
+
*
|
|
15
|
+
* 只做注入式 I/O(子代理启动/观测、重跑、时间),测试可用内存实现。
|
|
16
|
+
*/
|
|
17
|
+
import { existsSync, readFileSync, statSync, writeFileSync } from 'node:fs';
|
|
18
|
+
import { join } from 'node:path';
|
|
19
|
+
import { isChildSettled } from './jobs.js';
|
|
20
|
+
import { sha12 } from './proposal-store.js';
|
|
21
|
+
|
|
22
|
+
export const HANDOFF_DIR = '.skillopt-sleep-handoff';
|
|
23
|
+
const STATE_FILE = 'answerer.json';
|
|
24
|
+
const DEFAULT_CONCURRENCY = 3;
|
|
25
|
+
const DEFAULT_TTL_MS = 15 * 60 * 1000;
|
|
26
|
+
const DEFAULT_MAX_ATTEMPTS = 2;
|
|
27
|
+
const ANSWER_RULE = '只输出这道题的答案原文:不要调用工具、不要解释、不要代码围栏。';
|
|
28
|
+
|
|
29
|
+
/** 读 pending.json,归一成 [{id, prompt, answerFile}];没有或读不了返回 null。 */
|
|
30
|
+
export function readPendingCalls(workspace) {
|
|
31
|
+
const dir = join(workspace, HANDOFF_DIR);
|
|
32
|
+
const file = join(dir, 'pending.json');
|
|
33
|
+
if (!existsSync(file)) return null;
|
|
34
|
+
let doc;
|
|
35
|
+
try {
|
|
36
|
+
doc = JSON.parse(readFileSync(file, 'utf8'));
|
|
37
|
+
} catch {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const answersDir = typeof doc?.answers_dir === 'string' && doc.answers_dir !== '' ? doc.answers_dir : join(dir, 'answers');
|
|
41
|
+
const calls = [];
|
|
42
|
+
for (const row of Array.isArray(doc?.pending) ? doc.pending : []) {
|
|
43
|
+
if (typeof row?.id !== 'string' || row.id === '' || typeof row?.prompt !== 'string') continue;
|
|
44
|
+
const answerFile = typeof row.answer_file === 'string' && row.answer_file !== '' ? row.answer_file : join(answersDir, `${row.id}.md`);
|
|
45
|
+
calls.push({ id: row.id, prompt: row.prompt, answerFile });
|
|
46
|
+
}
|
|
47
|
+
return calls;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function hasAnswer(file) {
|
|
51
|
+
try {
|
|
52
|
+
return statSync(file).size > 0;
|
|
53
|
+
} catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function readState(dir) {
|
|
59
|
+
try {
|
|
60
|
+
const state = JSON.parse(readFileSync(join(dir, STATE_FILE), 'utf8'));
|
|
61
|
+
return state !== null && typeof state === 'object' ? state : {};
|
|
62
|
+
} catch {
|
|
63
|
+
return {};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* 推进一个工作区的 handoff 应答一步(tick 入口)。
|
|
69
|
+
*
|
|
70
|
+
* @param {object} input
|
|
71
|
+
* @param {string} input.workspace 项目工作区(夜间任务的 project)
|
|
72
|
+
* @param {object} input.deps
|
|
73
|
+
* @param {(label:string, request:{cwd:string, prompt:string}) => Promise<{childId:string, outputStart?:any}>} input.deps.startChild
|
|
74
|
+
* @param {(childId:string, outputStart:any) => {status?:string|null, events?:Array, text?:string}} input.deps.observe
|
|
75
|
+
* @param {(runScript:string) => Promise<{exitCode:number|null}>} input.deps.rerun
|
|
76
|
+
* @param {() => number} input.deps.now
|
|
77
|
+
* @param {(row:object) => void} [input.deps.diag]
|
|
78
|
+
* @param {number} [input.deps.concurrency]
|
|
79
|
+
* @param {number} [input.deps.ttlMs]
|
|
80
|
+
* @param {number} [input.deps.maxAttempts]
|
|
81
|
+
* @returns {Promise<{status:'idle'|'answering'|'rerun'|'stalled'|'blocked', answered:number, total:number}>}
|
|
82
|
+
*/
|
|
83
|
+
export async function stepHandoff({ workspace, deps }) {
|
|
84
|
+
const calls = readPendingCalls(workspace);
|
|
85
|
+
if (calls === null || calls.length === 0) return { status: 'idle', answered: 0, total: 0 };
|
|
86
|
+
const dir = join(workspace, HANDOFF_DIR);
|
|
87
|
+
const diag = deps.diag ?? (() => {});
|
|
88
|
+
const now = deps.now();
|
|
89
|
+
const concurrency = deps.concurrency ?? DEFAULT_CONCURRENCY;
|
|
90
|
+
const ttlMs = deps.ttlMs ?? DEFAULT_TTL_MS;
|
|
91
|
+
const maxAttempts = deps.maxAttempts ?? DEFAULT_MAX_ATTEMPTS;
|
|
92
|
+
const batch = sha12(calls.map((call) => call.id).join('\n'));
|
|
93
|
+
const saved = readState(dir);
|
|
94
|
+
const state = saved.batch === batch ? saved : { batch, calls: {}, rerunAt: null, stalled: false };
|
|
95
|
+
state.calls ??= {};
|
|
96
|
+
const save = () => writeFileSync(join(dir, STATE_FILE), JSON.stringify(state, null, 2), 'utf8');
|
|
97
|
+
|
|
98
|
+
let answered = 0;
|
|
99
|
+
let running = 0;
|
|
100
|
+
let exhausted = 0;
|
|
101
|
+
for (const call of calls) {
|
|
102
|
+
if (hasAnswer(call.answerFile)) {
|
|
103
|
+
answered += 1;
|
|
104
|
+
delete state.calls[call.id]?.childId;
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
const entry = state.calls[call.id] ?? { attempts: 0 };
|
|
108
|
+
state.calls[call.id] = entry;
|
|
109
|
+
if (typeof entry.childId === 'string') {
|
|
110
|
+
const seen = deps.observe(entry.childId, entry.outputStart ?? null);
|
|
111
|
+
if (isChildSettled(seen)) {
|
|
112
|
+
const text = String(seen?.text ?? '').trim();
|
|
113
|
+
delete entry.childId;
|
|
114
|
+
if (text !== '') {
|
|
115
|
+
writeFileSync(call.answerFile, `${text}\n`, 'utf8');
|
|
116
|
+
answered += 1;
|
|
117
|
+
diag({ ev: 'skillopt.handoff.answered', workspace, id: call.id, chars: text.length });
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
entry.attempts += 1;
|
|
121
|
+
diag({ ev: 'skillopt.handoff.empty', workspace, id: call.id, attempts: entry.attempts });
|
|
122
|
+
} else if (now - (entry.startedAt ?? now) > ttlMs) {
|
|
123
|
+
delete entry.childId;
|
|
124
|
+
entry.attempts += 1;
|
|
125
|
+
diag({ ev: 'skillopt.handoff.timeout', workspace, id: call.id, attempts: entry.attempts });
|
|
126
|
+
} else {
|
|
127
|
+
running += 1;
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (entry.attempts >= maxAttempts) {
|
|
132
|
+
exhausted += 1;
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
if (running >= concurrency) continue;
|
|
136
|
+
try {
|
|
137
|
+
const child = await deps.startChild(`skillopt-reviewer-handoff-${call.id}`, {
|
|
138
|
+
cwd: workspace,
|
|
139
|
+
prompt: `${ANSWER_RULE}\n\n${call.prompt}`,
|
|
140
|
+
});
|
|
141
|
+
entry.childId = child.childId;
|
|
142
|
+
entry.outputStart = child.outputStart ?? null;
|
|
143
|
+
entry.startedAt = now;
|
|
144
|
+
running += 1;
|
|
145
|
+
diag({ ev: 'skillopt.handoff.ask', workspace, id: call.id, childId: child.childId, attempt: entry.attempts + 1 });
|
|
146
|
+
} catch (error) {
|
|
147
|
+
entry.attempts += 1;
|
|
148
|
+
diag({ ev: 'skillopt.handoff.ask.fail', workspace, id: call.id, message: error?.message ?? String(error) });
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const total = calls.length;
|
|
153
|
+
if (answered < total) {
|
|
154
|
+
save();
|
|
155
|
+
if (exhausted > 0 && running === 0 && answered + exhausted === total) {
|
|
156
|
+
if (state.blocked !== true) diag({ ev: 'skillopt.handoff.blocked', workspace, batch, unanswered: exhausted });
|
|
157
|
+
state.blocked = true;
|
|
158
|
+
save();
|
|
159
|
+
return { status: 'blocked', answered, total };
|
|
160
|
+
}
|
|
161
|
+
return { status: 'answering', answered, total };
|
|
162
|
+
}
|
|
163
|
+
// 全部答完:同一批只重跑一次。
|
|
164
|
+
if (state.rerunAt !== null && state.rerunAt !== undefined) {
|
|
165
|
+
if (state.stalled !== true) {
|
|
166
|
+
state.stalled = true;
|
|
167
|
+
save();
|
|
168
|
+
diag({ ev: 'skillopt.handoff.stalled', workspace, batch, rerunAt: state.rerunAt });
|
|
169
|
+
}
|
|
170
|
+
return { status: 'stalled', answered, total };
|
|
171
|
+
}
|
|
172
|
+
const runScript = join(workspace, '.skillopt-sleep', 'run.ps1');
|
|
173
|
+
if (!existsSync(runScript)) {
|
|
174
|
+
save();
|
|
175
|
+
diag({ ev: 'skillopt.handoff.rerun.skip', workspace, reason: 'no scheduled run script' });
|
|
176
|
+
return { status: 'stalled', answered, total };
|
|
177
|
+
}
|
|
178
|
+
state.rerunAt = now;
|
|
179
|
+
save();
|
|
180
|
+
diag({ ev: 'skillopt.handoff.rerun', workspace, batch, answers: total });
|
|
181
|
+
try {
|
|
182
|
+
const result = await deps.rerun(runScript);
|
|
183
|
+
diag({ ev: 'skillopt.handoff.rerun.done', workspace, batch, exitCode: result?.exitCode ?? null });
|
|
184
|
+
} catch (error) {
|
|
185
|
+
diag({ ev: 'skillopt.handoff.rerun.fail', workspace, batch, message: error?.message ?? String(error) });
|
|
186
|
+
}
|
|
187
|
+
return { status: 'rerun', answered, total };
|
|
188
|
+
}
|
|
@@ -480,6 +480,14 @@ def _handoff_mine_and_pin(cfg, args, backend, snapshot: str, dry: bool):
|
|
|
480
480
|
# branch, or every later run re-scans the same stale window.
|
|
481
481
|
state.set_last_harvest(project, started, source)
|
|
482
482
|
state.save()
|
|
483
|
+
# The digest pin only protects answers of an unfinished round; with
|
|
484
|
+
# no tasks there are none. A kept pin is replayed every later night
|
|
485
|
+
# instead of harvesting (il2c: an empty pin from one `auto` run made
|
|
486
|
+
# every `dsh` night report "no tasks mined" over 10 live sessions).
|
|
487
|
+
try:
|
|
488
|
+
os.remove(digests_path)
|
|
489
|
+
except OSError:
|
|
490
|
+
pass
|
|
483
491
|
return 0, None
|
|
484
492
|
payload = make_tasks_payload(
|
|
485
493
|
tasks,
|
|
@@ -109,21 +109,29 @@ def _delete_win_task(task_name: str) -> bool:
|
|
|
109
109
|
return False
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
def _parse_win_task_names(csv_text: str) -> List[str]:
|
|
113
|
+
"""SkillOpt task names from ``schtasks /query /fo csv`` output.
|
|
114
|
+
|
|
115
|
+
schtasks reports task paths (``"\\SkillOpt-Sleep-…"`` for a root-folder
|
|
116
|
+
task); matching the bare prefix against the path never found one, so the
|
|
117
|
+
listing was always empty even with tasks installed.
|
|
118
|
+
"""
|
|
119
|
+
tasks: List[str] = []
|
|
120
|
+
for line in csv_text.splitlines():
|
|
121
|
+
if not line.startswith('"'):
|
|
122
|
+
continue
|
|
123
|
+
name = line.split(",", 1)[0].strip('"').lstrip("\\")
|
|
124
|
+
if name.startswith("SkillOpt-Sleep-") and name not in tasks:
|
|
125
|
+
tasks.append(name)
|
|
126
|
+
return tasks
|
|
127
|
+
|
|
128
|
+
|
|
112
129
|
def _list_win_tasks() -> List[str]:
|
|
113
130
|
try:
|
|
114
131
|
proc = _run_schtasks(["/query", "/fo", "csv"])
|
|
115
132
|
if proc.returncode != 0:
|
|
116
133
|
return []
|
|
117
|
-
|
|
118
|
-
for line in proc.stdout.splitlines():
|
|
119
|
-
if not line.startswith('"'):
|
|
120
|
-
continue
|
|
121
|
-
parts = line.split(",")
|
|
122
|
-
if len(parts) > 0:
|
|
123
|
-
name = parts[0].strip('"')
|
|
124
|
-
if name.startswith("SkillOpt-Sleep-"):
|
|
125
|
-
tasks.append(name)
|
|
126
|
-
return tasks
|
|
134
|
+
return _parse_win_task_names(proc.stdout or "")
|
|
127
135
|
except Exception:
|
|
128
136
|
return []
|
|
129
137
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suifei/dsh-ai-team",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.105",
|
|
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",
|
|
@@ -71,6 +71,13 @@ result — to verify a fix, unblock a card, or answer "did the loop work?" — r
|
|
|
71
71
|
task's last result and the `cron.log` timestamp: a trigger that fires every
|
|
72
72
|
night can still fail every night.
|
|
73
73
|
|
|
74
|
+
With `backend=handoff` the engine stops with exit 3 whenever model calls need
|
|
75
|
+
answers (`<project>/.skillopt-sleep-handoff/pending.json`). The AI team answers
|
|
76
|
+
them automatically: on each PMO tick, one fresh one-shot reviewer subagent per
|
|
77
|
+
call writes `answers/<id>.md`, then the scheduled `run.ps1` is rerun to resume.
|
|
78
|
+
Do not answer these prompts from a member session — its history contaminates the
|
|
79
|
+
held-out gate. Exit 3 in the task result means "waiting for answers", not failure.
|
|
80
|
+
|
|
74
81
|
## Parameters
|
|
75
82
|
|
|
76
83
|
| Parameter | Default | Meaning |
|