devez-vibe 1.6.25 → 1.6.26
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/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -1062,6 +1062,8 @@ async function createSession(params, resumeId) {
|
|
|
1062
1062
|
subagents: new Map(),
|
|
1063
1063
|
knownSubagents: new Map(),
|
|
1064
1064
|
hiddenSubagentTasks: new Set(),
|
|
1065
|
+
// level 신호는 CLI 프로세스가 뜰 때 아무것도 보내지 않는다. 새 세션은 빈
|
|
1066
|
+
// 집합에서 시작해야 이전 프로세스의 개수가 남지 않는다.
|
|
1065
1067
|
backgroundTasks: 0,
|
|
1066
1068
|
subagentPulse: null,
|
|
1067
1069
|
lastContextUsage: null,
|
|
@@ -1754,13 +1756,12 @@ function finishStructuredSubagent(session, message, kind, text) {
|
|
|
1754
1756
|
return true;
|
|
1755
1757
|
}
|
|
1756
1758
|
|
|
1757
|
-
//
|
|
1758
|
-
//
|
|
1759
|
+
// background_tasks_changed는 살아 있는 백그라운드 작업 전체를 담은 level 신호다.
|
|
1760
|
+
// SDK 문서가 못박은 대로 매번 집합을 통째로 갈아끼우고, 시작·완료 edge와는 짝짓지
|
|
1761
|
+
// 않는다. 순서가 보장되지 않아 섞으면 오히려 유령 작업이 남는다. 목록에는 위임
|
|
1762
|
+
// 에이전트뿐 아니라 백그라운드로 돌린 명령도 들어오므로 종류는 가리지 않는다.
|
|
1759
1763
|
function emitBackgroundTasks(session, tasks) {
|
|
1760
|
-
const count =
|
|
1761
|
-
const status = String(task?.status || "").toLowerCase();
|
|
1762
|
-
return !status || status === "running" || status === "in_progress" || status === "pending";
|
|
1763
|
-
}).length;
|
|
1764
|
+
const count = Array.isArray(tasks) ? tasks.length : 0;
|
|
1764
1765
|
if (count === session.backgroundTasks) return;
|
|
1765
1766
|
session.backgroundTasks = count;
|
|
1766
1767
|
notify("turn/backgroundTasks/updated", { threadId: session.id, count });
|