zcode-acp-server 0.83.3 → 0.84.1
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/README.md +1 -1
- package/dist/backend/credential-store.d.ts +39 -0
- package/dist/backend/credential-store.d.ts.map +1 -1
- package/dist/backend/credential-store.js +168 -1
- package/dist/backend/credential-store.js.map +1 -1
- package/dist/backend/jsonrpc-child.d.ts.map +1 -1
- package/dist/backend/jsonrpc-child.js +16 -3
- package/dist/backend/jsonrpc-child.js.map +1 -1
- package/dist/backend/resolve.d.ts +25 -0
- package/dist/backend/resolve.d.ts.map +1 -1
- package/dist/backend/resolve.js +55 -4
- package/dist/backend/resolve.js.map +1 -1
- package/dist/code-fingerprint.json +2 -2
- package/dist/config/account-provider.d.ts +1 -0
- package/dist/config/account-provider.d.ts.map +1 -1
- package/dist/config/account-provider.js +1 -1
- package/dist/config/account-provider.js.map +1 -1
- package/dist/handlers/background-tasks.d.ts.map +1 -1
- package/dist/handlers/background-tasks.js +4 -0
- package/dist/handlers/background-tasks.js.map +1 -1
- package/dist/handlers/prompt-content.d.ts.map +1 -1
- package/dist/handlers/prompt-content.js +3 -1
- package/dist/handlers/prompt-content.js.map +1 -1
- package/dist/handlers/replay.d.ts +13 -0
- package/dist/handlers/replay.d.ts.map +1 -1
- package/dist/handlers/replay.js +36 -1
- package/dist/handlers/replay.js.map +1 -1
- package/dist/handlers/server-requests.d.ts.map +1 -1
- package/dist/handlers/server-requests.js +80 -1
- package/dist/handlers/server-requests.js.map +1 -1
- package/dist/handlers/session.d.ts.map +1 -1
- package/dist/handlers/session.js +34 -5
- package/dist/handlers/session.js.map +1 -1
- package/dist/platform/win32.d.ts +20 -0
- package/dist/platform/win32.d.ts.map +1 -0
- package/dist/platform/win32.js +64 -0
- package/dist/platform/win32.js.map +1 -0
- package/dist/translators/index.d.ts +1 -1
- package/dist/translators/index.d.ts.map +1 -1
- package/dist/translators/index.js +1 -1
- package/dist/translators/index.js.map +1 -1
- package/dist/translators/projection-differ.d.ts +31 -0
- package/dist/translators/projection-differ.d.ts.map +1 -1
- package/dist/translators/projection-differ.js +54 -0
- package/dist/translators/projection-differ.js.map +1 -1
- package/docs/BACKLOG.md +66 -0
- package/docs/REMOTE-CLIENTS.md +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Windows-specific process helpers.
|
|
3
|
+
*
|
|
4
|
+
* Windows has no POSIX process groups: `process.kill(-pid)` cannot reap a
|
|
5
|
+
* tree. Every backend-group kill funnels through `killTree` here — POSIX
|
|
6
|
+
* keeps the group-signal semantics, Windows uses `taskkill /T /F`.
|
|
7
|
+
*/
|
|
8
|
+
import { spawn } from "node:child_process";
|
|
9
|
+
export function isWindows() {
|
|
10
|
+
return process.platform === "win32";
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Kill the whole process tree rooted at `pid`.
|
|
14
|
+
*
|
|
15
|
+
* POSIX: group SIGKILL (the caller previously used `process.kill(-pid)`).
|
|
16
|
+
* Windows: `taskkill /T /F` — `/T` walks the tree, `/F` force-terminates
|
|
17
|
+
* (console children ignore graceful WM_CLOSE, so the non-/F form is useless
|
|
18
|
+
* for a Node child with piped stdio).
|
|
19
|
+
*/
|
|
20
|
+
export function killTree(pid) {
|
|
21
|
+
if (!isWindows()) {
|
|
22
|
+
try {
|
|
23
|
+
process.kill(-pid, "SIGKILL");
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
// group already gone
|
|
27
|
+
}
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const tk = spawn("taskkill", ["/PID", String(pid), "/T", "/F"], {
|
|
32
|
+
stdio: "ignore",
|
|
33
|
+
windowsHide: true,
|
|
34
|
+
});
|
|
35
|
+
// taskkill itself missing (PATH stripped) → last-resort single kill.
|
|
36
|
+
tk.on("error", () => {
|
|
37
|
+
try {
|
|
38
|
+
process.kill(pid);
|
|
39
|
+
}
|
|
40
|
+
catch {
|
|
41
|
+
// already gone
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
try {
|
|
47
|
+
process.kill(pid);
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
// already gone
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** POSIX group-liveness probe; Windows has no group → falls back to the root pid. */
|
|
55
|
+
export function groupAlive(pid) {
|
|
56
|
+
try {
|
|
57
|
+
process.kill(isWindows() ? pid : -pid, 0);
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=win32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"win32.js","sourceRoot":"","sources":["../../src/platform/win32.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,MAAM,UAAU,SAAS;IACvB,OAAO,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC;AACtC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;QACjB,IAAI,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAChC,CAAC;QAAC,MAAM,CAAC;YACP,qBAAqB;QACvB,CAAC;QACD,OAAO;IACT,CAAC;IACD,IAAI,CAAC;QACH,MAAM,EAAE,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;YAC9D,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;QACH,qEAAqE;QACrE,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YAClB,IAAI,CAAC;gBACH,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACpB,CAAC;YAAC,MAAM,CAAC;gBACP,eAAe;YACjB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,CAAC;YACH,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;QAAC,MAAM,CAAC;YACP,eAAe;QACjB,CAAC;IACH,CAAC;AACH,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,IAAI,CAAC;QACH,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Translators barrel: internal event types + EventTranslator + ProjectionDiffer + helpers. */
|
|
2
2
|
export { EventTranslator } from "./event-translator.js";
|
|
3
|
-
export { ProjectionDiffer } from "./projection-differ.js";
|
|
3
|
+
export { isContentLiveDelivered, ProjectionDiffer } from "./projection-differ.js";
|
|
4
4
|
export { TOOL_KIND_MAP, summarizeToolInput, renderToolOutput, extractExitCode, buildResultContent, buildDiffContent, extractLocations, formatTurnError, isBackendLostError, isGatewayBlipTurnError, isTransientTurnError, } from "./tool-helpers.js";
|
|
5
5
|
export type { InternalEvent, ToolCallNewEvent, ToolCallUpdateEvent, UsageDeltaEvent, TextDeltaEvent, ReasoningDeltaEvent, PlanUpdateEvent, FilesChangedEvent, } from "./types.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translators/index.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translators/index.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Translators barrel: internal event types + EventTranslator + ProjectionDiffer + helpers. */
|
|
2
2
|
export { EventTranslator } from "./event-translator.js";
|
|
3
|
-
export { ProjectionDiffer } from "./projection-differ.js";
|
|
3
|
+
export { isContentLiveDelivered, ProjectionDiffer } from "./projection-differ.js";
|
|
4
4
|
export { TOOL_KIND_MAP, summarizeToolInput, renderToolOutput, extractExitCode, buildResultContent, buildDiffContent, extractLocations, formatTurnError, isBackendLostError, isGatewayBlipTurnError, isTransientTurnError, } from "./tool-helpers.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/translators/index.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/translators/index.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC"}
|
|
@@ -37,6 +37,27 @@ export declare class ProjectionDiffer {
|
|
|
37
37
|
historyAnchor: string | null;
|
|
38
38
|
/** Whether any TextDelta fired this turn (used by fallback detection). */
|
|
39
39
|
emittedTextThisTurn: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Live-delivered assistant TEXT this turn window: the raw concatenation of
|
|
42
|
+
* every text delta dispatched to clients, plus the backend message ids
|
|
43
|
+
* those deltas carried. The turn-completion replay uses this as the
|
|
44
|
+
* content-level belt under the deliveredMessageIds bridge: when the live
|
|
45
|
+
* stream and the journal read disagree on ids (a backend wire drift like
|
|
46
|
+
* 3.18.0's messageId spelling, or a provider streaming without
|
|
47
|
+
* assistantMessageId), id-based dedup alone would re-dispatch the whole
|
|
48
|
+
* reply a second time under chunkMsgId. Text and reasoning accumulate
|
|
49
|
+
* separately — per-kind, same contract as the translator's delivered sets.
|
|
50
|
+
*/
|
|
51
|
+
liveTextDelivered: string;
|
|
52
|
+
liveReasoningDelivered: string;
|
|
53
|
+
/** Backend message ids of TEXT live-delivered through paths OTHER than this
|
|
54
|
+
* turn's translator (background notification forwarding, fetchLastReply) —
|
|
55
|
+
* unioned into the completion replay's id check so their journal rows are
|
|
56
|
+
* not replayed over the already-forwarded text. */
|
|
57
|
+
readonly liveTextMessageIds: Set<string>;
|
|
58
|
+
/** Record a live-dispatched delta so the completion replay can suppress a
|
|
59
|
+
* journal copy of content the client already received. Per content kind. */
|
|
60
|
+
noteLiveTextDelta(kind: "text" | "reasoning", text: string, messageId?: string): void;
|
|
40
61
|
/** Mark all given messages as seen (baseline so we don't re-emit history). */
|
|
41
62
|
markSeen(messages: ZcodeMessage[]): void;
|
|
42
63
|
/** Whether a message's dedup key has already been processed. */
|
|
@@ -65,4 +86,14 @@ export declare class ProjectionDiffer {
|
|
|
65
86
|
private diffToolPart;
|
|
66
87
|
private messageDedupKey;
|
|
67
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Content-level duplicate guard for the turn-completion replay: whether a
|
|
91
|
+
* journal message's full text was already delivered to clients by the live
|
|
92
|
+
* stream of this turn window. Containment (multi-message turns concatenate
|
|
93
|
+
* their live text under one accumulator) plus a trimmed-equality fallback for
|
|
94
|
+
* journals that store leading/trailing whitespace the stream didn't. An empty
|
|
95
|
+
* accumulator (nothing streamed — the legitimate "replay a turn that ran
|
|
96
|
+
* while no listener was attached" case) never suppresses.
|
|
97
|
+
*/
|
|
98
|
+
export declare function isContentLiveDelivered(live: string, replayText: string): boolean;
|
|
68
99
|
//# sourceMappingURL=projection-differ.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection-differ.d.ts","sourceRoot":"","sources":["../../src/translators/projection-differ.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EACV,YAAY,EAGZ,aAAa,EACd,MAAM,qBAAqB,CAAC;AAU7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAqB;IACjD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA6B;IAC5D,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,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AM,EAAE,MAAM,GAAG,IAAI;IAKlC,4DAA4D;IAC5D,SAAS,IAAI,IAAI;IAUjB,4EAA4E;IAC5E,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIhC,+CAA+C;IAC/C,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,IAAI,GAAG,aAAa,EAAE;IAsDxD;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,SAAS,GAAG,aAAa,EAAE;IAevD,OAAO,CAAC,YAAY;IAmEpB,OAAO,CAAC,eAAe;CAYxB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAIhF"}
|
|
@@ -37,6 +37,38 @@ export class ProjectionDiffer {
|
|
|
37
37
|
historyAnchor = null;
|
|
38
38
|
/** Whether any TextDelta fired this turn (used by fallback detection). */
|
|
39
39
|
emittedTextThisTurn = false;
|
|
40
|
+
/**
|
|
41
|
+
* Live-delivered assistant TEXT this turn window: the raw concatenation of
|
|
42
|
+
* every text delta dispatched to clients, plus the backend message ids
|
|
43
|
+
* those deltas carried. The turn-completion replay uses this as the
|
|
44
|
+
* content-level belt under the deliveredMessageIds bridge: when the live
|
|
45
|
+
* stream and the journal read disagree on ids (a backend wire drift like
|
|
46
|
+
* 3.18.0's messageId spelling, or a provider streaming without
|
|
47
|
+
* assistantMessageId), id-based dedup alone would re-dispatch the whole
|
|
48
|
+
* reply a second time under chunkMsgId. Text and reasoning accumulate
|
|
49
|
+
* separately — per-kind, same contract as the translator's delivered sets.
|
|
50
|
+
*/
|
|
51
|
+
liveTextDelivered = "";
|
|
52
|
+
liveReasoningDelivered = "";
|
|
53
|
+
/** Backend message ids of TEXT live-delivered through paths OTHER than this
|
|
54
|
+
* turn's translator (background notification forwarding, fetchLastReply) —
|
|
55
|
+
* unioned into the completion replay's id check so their journal rows are
|
|
56
|
+
* not replayed over the already-forwarded text. */
|
|
57
|
+
liveTextMessageIds = new Set();
|
|
58
|
+
/** Record a live-dispatched delta so the completion replay can suppress a
|
|
59
|
+
* journal copy of content the client already received. Per content kind. */
|
|
60
|
+
noteLiveTextDelta(kind, text, messageId) {
|
|
61
|
+
if (!text)
|
|
62
|
+
return;
|
|
63
|
+
if (kind === "text") {
|
|
64
|
+
this.liveTextDelivered += text;
|
|
65
|
+
if (messageId)
|
|
66
|
+
this.liveTextMessageIds.add(messageId);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this.liveReasoningDelivered += text;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
40
72
|
/** Mark all given messages as seen (baseline so we don't re-emit history). */
|
|
41
73
|
markSeen(messages) {
|
|
42
74
|
for (const m of messages) {
|
|
@@ -68,6 +100,12 @@ export class ProjectionDiffer {
|
|
|
68
100
|
/** Reset per-turn flags (does NOT reset seenMessageIds). */
|
|
69
101
|
resetTurn() {
|
|
70
102
|
this.emittedTextThisTurn = false;
|
|
103
|
+
// Live-delivery tracking is per turn window: everything committed before
|
|
104
|
+
// the next turn's baseline markSeen is replay-suppressed by seen ids, so
|
|
105
|
+
// stale content here could only mis-suppress legitimate replays.
|
|
106
|
+
this.liveTextDelivered = "";
|
|
107
|
+
this.liveReasoningDelivered = "";
|
|
108
|
+
this.liveTextMessageIds.clear();
|
|
71
109
|
}
|
|
72
110
|
/** Set the usage baseline so the next diff won't re-emit the same value. */
|
|
73
111
|
setLastUsage(used) {
|
|
@@ -237,6 +275,22 @@ export class ProjectionDiffer {
|
|
|
237
275
|
}
|
|
238
276
|
}
|
|
239
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Content-level duplicate guard for the turn-completion replay: whether a
|
|
280
|
+
* journal message's full text was already delivered to clients by the live
|
|
281
|
+
* stream of this turn window. Containment (multi-message turns concatenate
|
|
282
|
+
* their live text under one accumulator) plus a trimmed-equality fallback for
|
|
283
|
+
* journals that store leading/trailing whitespace the stream didn't. An empty
|
|
284
|
+
* accumulator (nothing streamed — the legitimate "replay a turn that ran
|
|
285
|
+
* while no listener was attached" case) never suppresses.
|
|
286
|
+
*/
|
|
287
|
+
export function isContentLiveDelivered(live, replayText) {
|
|
288
|
+
if (!live || !replayText)
|
|
289
|
+
return false;
|
|
290
|
+
if (live.includes(replayText))
|
|
291
|
+
return true;
|
|
292
|
+
return live.trim() === replayText.trim();
|
|
293
|
+
}
|
|
240
294
|
/** Deterministic JSON string with recursively sorted object keys, mirroring
|
|
241
295
|
* Python's `json.dumps(..., sort_keys=True)` so signatures are stable regardless
|
|
242
296
|
* of key insertion order. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection-differ.js","sourceRoot":"","sources":["../../src/translators/projection-differ.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAUH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,eAAe,GAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,OAAO,gBAAgB;IACV,WAAW,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,cAAc,GAAG,IAAI,GAAG,EAAkB,CAAC;IACpD,SAAS,GAAkB,IAAI,CAAC;IACvB,cAAc,GAAG,IAAI,GAAG,EAAU,CAAC;IAC5C,WAAW,GAAG,UAAU,CAAC;IAChB,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;IACrD;;;;;;;;;;OAUG;IACH,aAAa,GAAkB,IAAI,CAAC;IACpC,0EAA0E;IAC1E,mBAAmB,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"projection-differ.js","sourceRoot":"","sources":["../../src/translators/projection-differ.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAUH,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB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KAAK,UAAU,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED;;8BAE8B;AAC9B,SAAS,eAAe,CAAC,KAAc;IACrC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,GAAG,GAAG,KAAgC,CAAC;QAC7C,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;aACpB,IAAI,EAAE;aACN,MAAM,CAA0B,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;YAC1C,GAAG,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1B,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/docs/BACKLOG.md
CHANGED
|
@@ -243,6 +243,72 @@ enumerated `AUTOMATION_TOOL_DEFAULTS` therefore gained `CronPauseSelf`
|
|
|
243
243
|
(src/backend/resolve.ts) — a headless bridge session never carries a run's
|
|
244
244
|
`automationId`, so the tool can never do anything there.
|
|
245
245
|
|
|
246
|
+
**3.17.2 + 3.18.0 audit (2026-11-11, commits `a9fe401e`/`b95ebaff` — checkout
|
|
247
|
+
synced, purely additive protocol, ONE follow-up = #371)**: the machine's
|
|
248
|
+
desktop auto-updated 3.17.1 → 3.17.2 (runtime provider sync already ran; its
|
|
249
|
+
`zcode.cjs` still self-reports CLI `0.17.1`). 3.17.2's schema diff is +4
|
|
250
|
+
lines: the `sessionLifecycleWorkspace` runtime capability and a new
|
|
251
|
+
`sessionLifecycleActivationParamsSchema` (optional `workspace`) that
|
|
252
|
+
`lifecycle/ensureReady`/`restart` now parse — `getState` and the `changed`
|
|
253
|
+
notification are untouched, and the bridge consumes only those two, so 3.17.2
|
|
254
|
+
is a zero-impact ride for the running bridge.
|
|
255
|
+
|
|
256
|
+
3.18.0 (`b95ebaff`, 5,099 files) is the NEXT desktop update target; audited
|
|
257
|
+
from the synced checkout. The shared protocol schema
|
|
258
|
+
(`packages/shared/src/zcode-protocol/index.ts`) is +107/−0 — purely additive:
|
|
259
|
+
new runtime capability bits (`highspeedCardOwner`, `pluginDiscoveryUi`,
|
|
260
|
+
`worktreeCwd`, `extensionInputSource`, `conversationQuoteComment`,
|
|
261
|
+
`pluginExtensionSummary`), new methods (`session/releaseUnderDirectory`,
|
|
262
|
+
`plugins/readUserOptions`, `plugins/mentionItems`, the `appControl*` family,
|
|
263
|
+
`interaction/requestCredentialCipher`), optional params (`session/messages`
|
|
264
|
+
`direction`, `session/send` `modelSelectionBasis`, plugins overview
|
|
265
|
+
`includeExtensionSummary`, `pluginInfo.dataPath`), the
|
|
266
|
+
`startup/pluginsDegraded` notification, and defensive optional fields on
|
|
267
|
+
strict event payloads (`turn.started` `workflowLaunch`/`epilogueStart`/
|
|
268
|
+
`inputOrigin`, `turn.steerQueued` `inputPresentation`/`automationId` — the
|
|
269
|
+
bridge ignores unknown payload fields). The dispatch switch only GROWS (no
|
|
270
|
+
method removed). The new server→client ask
|
|
271
|
+
`interaction/requestCredentialCipher` is a desktop login-flow request
|
|
272
|
+
(docs/design/v2/auth-login.md; no app-server emission on the bridge's paths)
|
|
273
|
+
— the unhandled-request error path covers it regardless. `session-mapper.ts`
|
|
274
|
+
strips MORE v4-only fields from legacy payloads (`toolCall.started`
|
|
275
|
+
`readOnly`/`sideEffectScope`, permission `fullAccessSupported`) — protection
|
|
276
|
+
FOR old clients, the bridge included. Verified zero-diff on every
|
|
277
|
+
Gotchas-cited behavior file: `verification-policy.ts` (request-security
|
|
278
|
+
stubs), `provider-runtime-env.ts`, `registry-service.ts`,
|
|
279
|
+
`execution-state.ts` (the plan-mode fold), `model-catalog-port.ts` (the
|
|
280
|
+
reasoning ladder), the toolDenylist projection, and the compact/setModel/
|
|
281
|
+
send-busy semantics in `server-operations.ts` (its 614-line diff is
|
|
282
|
+
refactoring: goal-continuation extraction + unified legacy/V4 model admission
|
|
283
|
+
+ `releaseUnderDirectory` wiring — no hunk touches stop/compact/-32010), the
|
|
284
|
+
lifecycle `getState` schema, and the v4 surfaces the bridge consumes
|
|
285
|
+
(`renameSession`/`resumeWorkflowRun`/`workflowRuns` queries: 0 changes; v4
|
|
286
|
+
rows gained a per-line `unreadable` degradation row + worktree rows —
|
|
287
|
+
display-layer only).
|
|
288
|
+
|
|
289
|
+
The ONE substantive follow-up — ADR-0031's "no physical delete path"
|
|
290
|
+
premise is GONE in 3.18.0: upstream added a real two-phase permanent
|
|
291
|
+
deletion face (`bootstrap/src/zcode-protocol/session-data/permanent-deletion.ts`,
|
|
292
|
+
v4 `storage/sessionData/*` preview→execute with a revision guard,
|
|
293
|
+
retained-artifact allowlist, busy/in-use blocking, `forgetIndexedSession`
|
|
294
|
+
sweeping the sessions-index projections). The bridge needs NO change to keep
|
|
295
|
+
running (a physically deleted session resume hits the existing
|
|
296
|
+
`isSessionGoneError` → sessionEvicted path), but `reviveTombstonesOnActivity`
|
|
297
|
+
can resurrect tombstoned rows whose bytes are gone (garbage in /resume), and
|
|
298
|
+
the hub's delete endpoints can now be upgraded to REAL deletion — tracked in
|
|
299
|
+
#371.
|
|
300
|
+
|
|
301
|
+
**Correction (2026-11-12)**: the audit above scoped "no bridge change" to the
|
|
302
|
+
PROTOCOL surface only — hours after the machine took the 3.18.0 update, the
|
|
303
|
+
credential-store migration knocked every bridge session down (all turns
|
|
304
|
+
`model_request_failed`; the values moved to `enc:v2:os` OS-keyring
|
|
305
|
+
encryption, unreadable to the pre-v2 reader which passed the ciphertext
|
|
306
|
+
through as plaintext). Fixed in 0.84.0 (#374): keyring-backed reads via
|
|
307
|
+
@napi-rs/keyring, the `interaction/requestCredentialCipher` host delegation
|
|
308
|
+
with the strict `{requestId, result}` reply shape, and no
|
|
309
|
+
ciphertext-as-plaintext passthrough — full Gotcha in AGENTS.md. The
|
|
310
|
+
tombstone follow-up above is unaffected and stays open.
|
|
311
|
+
|
|
246
312
|
**3.14.0 audit (2026-09-20, app-server 0.16.9 — live-probed end to end)**: the
|
|
247
313
|
dynamic-workflow family (ten model tools led by `CreateWorkflow`) is OFF by
|
|
248
314
|
default headless and enabled per PROCESS via
|
package/docs/REMOTE-CLIENTS.md
CHANGED
|
@@ -230,7 +230,7 @@ zcode-acp-remote-desktop` (every desktop hub call is); or such a stamped
|
|
|
230
230
|
already holding that session live, whatever its origin — and only a
|
|
231
231
|
workspace without one spawns, headless. Attach and `session/new` /
|
|
232
232
|
`session/load` exactly as after a headless fallback.
|
|
233
|
-
- **A reuse target must run the CURRENT code** (bridge ≥0.
|
|
233
|
+
- **A reuse target must run the CURRENT code** (bridge ≥0.83.3): every bridge
|
|
234
234
|
reports a `codeFingerprint` (with its `version`) on each registration. When
|
|
235
235
|
that fingerprint differs from the dist on disk — i.e. a rebuild or release
|
|
236
236
|
landed after the bridge started — the hub treats it as stale for NEW work:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcode-acp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.1",
|
|
4
4
|
"description": "Agent Client Protocol (ACP) server bridging headless ZCode to editors like Zed and JetBrains.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
53
|
+
"@napi-rs/keyring": "^2.1.2",
|
|
53
54
|
"ws": "^8.21.3",
|
|
54
55
|
"zcode-acp-martty": "0.3.1-zcode.1"
|
|
55
56
|
},
|