zcode-app-cli 3.11.2-20 → 3.11.2-21
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/package.json
CHANGED
package/vendor/extraction.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"appVersion": "3.11.2",
|
|
3
3
|
"cliVersion": "0.16.5",
|
|
4
|
-
"extractedAt": "2026-09-
|
|
4
|
+
"extractedAt": "2026-09-06T14:59:40.516Z",
|
|
5
5
|
"sha512": "4UAMZSP9ZWBrnb8wGaP39rb5dB5ikPx4aYPXKXGea1Vmd6L6vGma3rXwRxKbhBxgsCIE9jv6tmrdSL60RrzGcA==",
|
|
6
6
|
"source": "https://cdn-zcode.z.ai/zcode/electron/releases/3.11.2/linux-x64/ZCode-3.11.2-linux-x64.deb",
|
|
7
7
|
"runtimeCapabilities": {
|
|
@@ -157123,9 +157123,12 @@ const maximumCharactersPerTask = 64e3;
|
|
|
157123
157123
|
const maximumEntryCharacters = 2e4;
|
|
157124
157124
|
const maximumScopedTurnIds = 256;
|
|
157125
157125
|
const maximumScopedToolCallIds = 512;
|
|
157126
|
-
function
|
|
157126
|
+
function handoffInputSource(source) {
|
|
157127
157127
|
return source === "background_task" || source === "subagent_message";
|
|
157128
157128
|
}
|
|
157129
|
+
function autonomousInputSource(source) {
|
|
157130
|
+
return source === "subagent" || handoffInputSource(source);
|
|
157131
|
+
}
|
|
157129
157132
|
function taskIdFor(event) {
|
|
157130
157133
|
return event.taskId ?? event.agentId;
|
|
157131
157134
|
}
|
|
@@ -157216,7 +157219,7 @@ var BackgroundTaskEventStore = class {
|
|
|
157216
157219
|
tone: "error"
|
|
157217
157220
|
});
|
|
157218
157221
|
} else if ((event.type === "background_task_started" || event.type === "background_task_updated") && taskId && terminalTaskStatus(event.taskStatus)) changed = true;
|
|
157219
|
-
if ((event.type === "turn_started" || event.type === "turn.started") && event.turnId &&
|
|
157222
|
+
if ((event.type === "turn_started" || event.type === "turn.started") && event.turnId && handoffInputSource(event.inputSource)) {
|
|
157220
157223
|
const pending = event.inputSource === "background_task" ? this.pendingBackgroundTasks : this.pendingSubagentMessages;
|
|
157221
157224
|
const taskIds = [.../* @__PURE__ */ new Set([...event.taskIds ?? [], ...pending])];
|
|
157222
157225
|
pending.clear();
|
|
@@ -158125,6 +158128,7 @@ function normalizeEvent(value) {
|
|
|
158125
158128
|
].includes(asString(body.field) ?? "") ? asString(body.field) : void 0,
|
|
158126
158129
|
messageId: asString(body.messageId) ?? asString(body.messageID) ?? asString(body.assistantMessageId) ?? part?.messageId,
|
|
158127
158130
|
partId: asString(body.partId) ?? asString(body.partID) ?? part?.partId,
|
|
158131
|
+
sessionId: asString(value.sessionId) ?? asString(value.sessionID) ?? asString(params?.sessionId) ?? asString(params?.sessionID) ?? asString(payload?.sessionId) ?? asString(payload?.sessionID) ?? asString(body.sessionId) ?? asString(body.sessionID) ?? part?.sessionId,
|
|
158128
158132
|
turnId: envelopeString("turnId") ?? envelopeString("turnID"),
|
|
158129
158133
|
eventId: asString(value.eventId) ?? (params && asString(params.eventId)) ?? asString(value.id) ?? (params && asString(params.id)) ?? asString(body.eventId) ?? asString(body.id),
|
|
158130
158134
|
inputSource: envelopeString("inputSource"),
|
|
@@ -167396,7 +167400,7 @@ var ZCodeTui = class {
|
|
|
167396
167400
|
this.debugEvent("session", value);
|
|
167397
167401
|
if (turnEpoch !== void 0 && turnEpoch !== this.activeTurnEpoch) return;
|
|
167398
167402
|
const event = normalizeEvent(value);
|
|
167399
|
-
if (!event) return;
|
|
167403
|
+
if (!event || this.isForeignSessionEvent(event)) return;
|
|
167400
167404
|
const taskScoped = this.backgroundTaskEvents.isTaskScoped(event);
|
|
167401
167405
|
this.applyBackgroundTaskEvent(event);
|
|
167402
167406
|
if (!taskScoped && event.kind && toolLifecycleEventKinds.has(event.kind)) this.turnHadWorkActivity = true;
|
|
@@ -167539,9 +167543,12 @@ var ZCodeTui = class {
|
|
|
167539
167543
|
onSessionEvent(value) {
|
|
167540
167544
|
this.debugEvent("session-subscription", value);
|
|
167541
167545
|
const event = normalizeEvent(value);
|
|
167542
|
-
if (!event) return;
|
|
167546
|
+
if (!event || this.isForeignSessionEvent(event)) return;
|
|
167543
167547
|
this.applyBackgroundTaskEvent(event);
|
|
167544
167548
|
}
|
|
167549
|
+
isForeignSessionEvent(event) {
|
|
167550
|
+
return Boolean(this.sessionId && event.sessionId && event.sessionId !== this.sessionId);
|
|
167551
|
+
}
|
|
167545
167552
|
isBackgroundCoordinatorReasoning(event) {
|
|
167546
167553
|
if (!event.messageId || !this.backgroundCoordinatorMessageIds.has(event.messageId)) return false;
|
|
167547
167554
|
return event.kind === "reasoning_start" || event.kind === "reasoning_delta" || event.kind === "reasoning_end" || event.part?.type === "thought" || event.field === "reasoning";
|