zcode-acp-server 0.83.3 → 0.84.2
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 +34 -0
- package/dist/handlers/background-tasks.d.ts.map +1 -1
- package/dist/handlers/background-tasks.js +73 -1
- package/dist/handlers/background-tasks.js.map +1 -1
- package/dist/handlers/io.d.ts +6 -3
- package/dist/handlers/io.d.ts.map +1 -1
- package/dist/handlers/io.js +6 -3
- package/dist/handlers/io.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 +49 -9
- 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/remote/session-close-endpoint.d.ts.map +1 -1
- package/dist/remote/session-close-endpoint.js +5 -0
- package/dist/remote/session-close-endpoint.js.map +1 -1
- package/dist/remote/status-endpoint.d.ts +4 -1
- package/dist/remote/status-endpoint.d.ts.map +1 -1
- package/dist/remote/status-endpoint.js +6 -1
- package/dist/remote/status-endpoint.js.map +1 -1
- package/dist/server.d.ts +23 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +41 -1
- package/dist/server.js.map +1 -1
- 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/ARCHITECTURE.md +1 -1
- package/docs/BACKLOG.md +66 -0
- package/docs/REMOTE-CLIENTS.md +1 -1
- package/docs/REPLAY-GUIDE.md +8 -0
- package/package.json +2 -1
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -221,7 +221,7 @@ API only because the ZCode backend itself sends them for inference.
|
|
|
221
221
|
| `config.ts` | ENV parsing (gate, mandatory token, hub/bridge ports) |
|
|
222
222
|
| `endpoint.ts` | Loopback ACP endpoint (SDK AcpServer transport, port auto-increment) + hub registration/heartbeat |
|
|
223
223
|
| `file-endpoint.ts` | Read-only `GET /fs/list` + `GET /fs/file` on the loopback server (ADR-0004): Session Root scoping, byte/line windows, streaming |
|
|
224
|
-
| `status-endpoint.ts` | `GET /status` on the loopback server (ADR-0005): in-memory per-session running state (`pendingTurns` derivation), zero backend RPC
|
|
224
|
+
| `status-endpoint.ts` | `GET /status` on the loopback server (ADR-0005): in-memory per-session running state (`pendingTurns` + `foreignActiveTurns` derivation), zero backend RPC |
|
|
225
225
|
| `session-close-endpoint.ts` | `POST /sessions/{id}/close` on the loopback server (ADR-0006): running-guarded discovery retirement with self-healing re-appearance |
|
|
226
226
|
| `settings-endpoint.ts` | `settings/*` routes on the loopback server (ADR-0025): the ZCode configuration API, mounted again by the hub behind the token |
|
|
227
227
|
| `hub-server.ts` | The hub singleton: token auth, instance discovery, byte-level WS proxying, heartbeat pruning, on-demand `?probe=1` liveness, idle exit, version self-upgrade, `GET /api/quota` direct query (ADR-0005), POST close proxy (ADR-0006) |
|
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/docs/REPLAY-GUIDE.md
CHANGED
|
@@ -148,6 +148,14 @@ prompted). Two signals cover it:
|
|
|
148
148
|
new prompt interrupts an in-flight one) the old turn's exit reports
|
|
149
149
|
`running: true`: the preempting turn took over, so the session is still busy.
|
|
150
150
|
|
|
151
|
+
"Any turn" includes turns the BACKEND started on its own, with no client
|
|
152
|
+
prompt at all — a background sub-agent's completion wake
|
|
153
|
+
(`inputSource:"background_task"`), a `subagent_message` turn, a control-only
|
|
154
|
+
turn. These stream messages into the conversation while no bridge turn loop
|
|
155
|
+
exists; the bridge tracks them the same way upstream's taskActivityTracker
|
|
156
|
+
keys its running-session set off `turn.started` / `turn.terminal` regardless
|
|
157
|
+
of origin, and `GET /status` reports them `running` too.
|
|
158
|
+
|
|
151
159
|
The notification is **dual-emitted under two names** (#311): the deprecated
|
|
152
160
|
`$/zcode/turnState` (LSP-style prefix) and the spec-compliant
|
|
153
161
|
`_zcode/turnState` (ACP reserves `_`-prefixed names for extension
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcode-acp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.2",
|
|
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
|
},
|