zcode-acp-server 0.83.2 → 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/remote/endpoint.d.ts.map +1 -1
- package/dist/remote/endpoint.js +11 -0
- package/dist/remote/endpoint.js.map +1 -1
- package/dist/remote/hub-server.d.ts.map +1 -1
- package/dist/remote/hub-server.js +107 -7
- package/dist/remote/hub-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/BACKLOG.md +66 -0
- package/docs/REMOTE-CLIENTS.md +15 -0
- package/package.json +2 -1
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,6 +230,21 @@ 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.83.3): every bridge
|
|
234
|
+
reports a `codeFingerprint` (with its `version`) on each registration. When
|
|
235
|
+
that fingerprint differs from the dist on disk — i.e. a rebuild or release
|
|
236
|
+
landed after the bridge started — the hub treats it as stale for NEW work:
|
|
237
|
+
a create, a resume of an idle conversation, and the history listing all
|
|
238
|
+
incubate a fresh bridge instead, and `incubateServe`'s registration poll
|
|
239
|
+
refuses a stale registration so the spawn cannot be answered by the bridge
|
|
240
|
+
it was meant to replace. Node loads its modules once per process, so a
|
|
241
|
+
reused pre-build bridge otherwise served its OLD handlers and model list
|
|
242
|
+
forever (reported 2026-11-10: a released entitlement fix appeared absent
|
|
243
|
+
from every "new" session). Two invariants: a resume whose session is LIVE
|
|
244
|
+
on some bridge always lands there, staleness notwithstanding (two bridges
|
|
245
|
+
must never load one conversation), and a stale bridge is never killed — it
|
|
246
|
+
keeps its attached clients and running turns and exits on its own idle
|
|
247
|
+
window.
|
|
233
248
|
- Lifetime depends on the surface: a terminal-TUI instance lives while its
|
|
234
249
|
window lives (the owner closing it retires the bridge — re-create on
|
|
235
250
|
demand); the headless fallback exists for remote interest only and exits
|
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
|
},
|