zcode-acp-server 0.80.0 → 0.81.0

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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/dist/backend/resolve.d.ts.map +1 -1
  3. package/dist/backend/resolve.js +11 -2
  4. package/dist/backend/resolve.js.map +1 -1
  5. package/dist/code-fingerprint.json +2 -2
  6. package/dist/handlers/background-tasks.d.ts +5 -1
  7. package/dist/handlers/background-tasks.d.ts.map +1 -1
  8. package/dist/handlers/background-tasks.js +49 -7
  9. package/dist/handlers/background-tasks.js.map +1 -1
  10. package/dist/handlers/session-titles.d.ts +38 -5
  11. package/dist/handlers/session-titles.d.ts.map +1 -1
  12. package/dist/handlers/session-titles.js +114 -7
  13. package/dist/handlers/session-titles.js.map +1 -1
  14. package/dist/handlers/session.d.ts.map +1 -1
  15. package/dist/handlers/session.js +72 -4
  16. package/dist/handlers/session.js.map +1 -1
  17. package/dist/handlers/slash.d.ts.map +1 -1
  18. package/dist/handlers/slash.js +12 -0
  19. package/dist/handlers/slash.js.map +1 -1
  20. package/dist/handlers/steering.d.ts +43 -0
  21. package/dist/handlers/steering.d.ts.map +1 -0
  22. package/dist/handlers/steering.js +148 -0
  23. package/dist/handlers/steering.js.map +1 -0
  24. package/dist/i18n.d.ts +3 -0
  25. package/dist/i18n.d.ts.map +1 -1
  26. package/dist/i18n.js +6 -0
  27. package/dist/i18n.js.map +1 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +5 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/remote/session-rename-endpoint.d.ts +5 -4
  32. package/dist/remote/session-rename-endpoint.d.ts.map +1 -1
  33. package/dist/remote/session-rename-endpoint.js +11 -33
  34. package/dist/remote/session-rename-endpoint.js.map +1 -1
  35. package/dist/server.d.ts +9 -0
  36. package/dist/server.d.ts.map +1 -1
  37. package/dist/server.js +16 -0
  38. package/dist/server.js.map +1 -1
  39. package/dist/settings/app-update.d.ts.map +1 -1
  40. package/dist/settings/app-update.js +34 -1
  41. package/dist/settings/app-update.js.map +1 -1
  42. package/dist/tasks-index.d.ts +18 -0
  43. package/dist/tasks-index.d.ts.map +1 -1
  44. package/dist/tasks-index.js +42 -4
  45. package/dist/tasks-index.js.map +1 -1
  46. package/dist/utils.d.ts +6 -0
  47. package/dist/utils.d.ts.map +1 -1
  48. package/dist/utils.js +5 -0
  49. package/dist/utils.js.map +1 -1
  50. package/docs/ARCHITECTURE.md +2 -1
  51. package/docs/BACKLOG.md +54 -4
  52. package/docs/PROTOCOL.md +67 -7
  53. package/docs/REMOTE-CLIENTS.md +18 -13
  54. package/package.json +1 -1
package/dist/utils.js CHANGED
@@ -132,6 +132,11 @@ export const SLASH_COMMANDS = [
132
132
  input: { hint: "low|high|max" },
133
133
  },
134
134
  { name: "quota", description: "Show remaining usage quota (5h / weekly / MCP)" },
135
+ {
136
+ name: "rename",
137
+ description: "Rename the current session (title)",
138
+ input: { hint: "<new title>" },
139
+ },
135
140
  { name: "resume", description: "Resume a past session into this thread (picker popup)" },
136
141
  { name: "mcp", description: "List available MCP servers" },
137
142
  { name: "init", description: "Create or update workspace AGENTS.md instructions" },
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,+CAA+C;AAC/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAElC;;;;;GAKG;AACH,MAAM,eAAe,GAAW,CAAC,GAAG,EAAE;IACpC,IAAI,CAAC;QACH,MAAM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ACpF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,CAAS,EAAE,CAAS;IAClD,4EAA4E;IAC5E,4DAA4D;IAC5D,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IACvB,IAAI,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC,CAAC;IAClB,IAAI,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,MAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IAC3C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;QAChC,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC;QAChC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;YACzC,oDAAoD;YACpD,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,EAAE,KAAK,EAAE;YAAE,OAAO,EAAE,GAAG,EAAE,CAAC;IAChC,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -175,7 +175,8 @@ API only because the ZCode backend itself sends them for inference.
175
175
  | File | Responsibility |
176
176
  | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
177
177
  | `session.ts` | session/new/list/resume/load/prompt/set_config_option/cancel |
178
- | `extensions.ts` | fork/rewind/rewindCascade/goal/compact/steer/cancelBackgroundTask/setModel/setMode/setThoughtLevel |
178
+ | `extensions.ts` | fork/goal/compact/cancelBackgroundTask/setModel/setMode/setThoughtLevel |
179
+ | `steering.ts` | `_session/steering` — cross-adapter steering extension (codex-acp convention) over `v4/command` sendText guide/queue (#352) |
179
180
  | `dispatch.ts` | dispatchEvent single exit point: InternalEvent → ACP session/update |
180
181
  | `background-tasks.ts` | Session-scoped `BackgroundTaskListener` — forwards background sub-agent status (`session.updated` taskId) + completion-notification turns to the client OUTSIDE request handlers (lives across prompts) |
181
182
  | `session-titles.ts` | Session-scoped `SessionTitleListener` — adopts backend `session.titleUpdated` pushes (`generated`/`custom` sources; manual renames win) into sessionTitles/tasks-index/terminal tab + broadcasts `session_info_update` |
package/docs/BACKLOG.md CHANGED
@@ -177,6 +177,52 @@ exactly the bridge's existing override-over-verdict rule (local
177
177
  `workflow.mode` > remote verdict, unset = follow the verdict), so upstream
178
178
  moved toward the bridge; nothing to change.
179
179
 
180
+ **3.17.1 audit (2026-11-02, commit `a60ba6a7` / source `73158b64` — one
181
+ bridge fix)**: the desktop moved 3.16.3 → 3.17.1 and its `zcode.cjs`
182
+ self-reports CLI `0.17.1` — the checkout's exact CLI (root `3.17.1`,
183
+ `apps/zcode-cli` `0.17.1`), so for the first time since 3.16.2 the public
184
+ tree IS the running backend with no unseen delta. Protocol schema diff
185
+ `packages/shared/src/zcode-protocol/index.ts` +160/−11, additive from the
186
+ bridge's seat: new `session/lifecycle/{changed,getState,ensureReady,stop,
187
+ restart}` family (runtime-instance lifecycle, `SessionLifecycleController` —
188
+ `session/lifecycle/changed` is a standalone JSON-RPC NOTIFICATION, not a
189
+ `session/event`, and the bridge's read loop ignores it; `ensureReady`/
190
+ `getState` are an alignment candidate for replacing the "Session is not
191
+ active" eviction-recovery dance and feeding `backendLoadedSessions`
192
+ staleness), `workspace/mcp/trust` + `workspaceTrust` on mcp status snapshots
193
+ (the bridge injects servers explicitly on create/resume = trusted, no
194
+ impact), `automation/pause`, `turn.started` payload + `automationId`/
195
+ `offPeakTaskId`/`offPeakRunType` (bridge ignores unknown payload fields),
196
+ mcpServer schema + optional `scope`/`cwd` (passthrough unaffected),
197
+ `session/requestRuntimePreferences` + optional `workspace`/
198
+ `directorySessionId` (bridge sends neither), and a `-32032` provider-config
199
+ error family for the request-verification edition — NULL in the open tree
200
+ (`packages/shared/src/request-security-edition/verification-policy.ts`
201
+ returns false/null everywhere), so the bridge's runtime-headers answerer is
202
+ unchanged. Gotchas invariants re-verified at source: `activeAbortController`
203
+ at accept + `-32010 "A prompt is already running"` + `session_compacted`
204
+ reasons (server-operations.ts sendPrompt/compact), provider revision
205
+ `zcode-builtin:<rev>:<sha256(PATH)>` (zcode-builtin-provider-config-source.ts
206
+ `sourceKey` = sha256 of the resolved path; the +32-line diff there only adds
207
+ an in-process last-known-good cache for a deleted bundled dir), `Reasoning
208
+ level is required for <p>/<m>` (provider-registry-selection.ts:136),
209
+ `session-mapper.ts` ZERO diff (plan-mode fold + dynamic_workflow stripping
210
+ intact), v4 `command.ts` sendText payload union ZERO diff (the `_session/
211
+ steering` envelope is untouched; session-flow.ts only added GenUI input
212
+ normalization and dropped `inputPresentation` plumbing — neither is in the
213
+ bridge's payload). The ONE bridge action: `CronPauseSelf` joined the
214
+ always-registered automation tool set (`automationPort` stays unconditional,
215
+ server-operations.ts; core registers it whenever the port exists). Upstream
216
+ HIDES it from ordinary turns (`turn-tool-visibility.ts` — "非执行轮隐藏",
217
+ deliberately NOT in `AUTOMATION_MUTATION_TOOL_NAMES`) and its handler
218
+ hard-rejects without a port call when the turn carries no `automationId`
219
+ (cron.ts "only available while running a scheduled automation") — but it
220
+ stays in the ToolSearch directory, and upstream itself adds it to remote
221
+ workspaces' session denylist (`REMOTE_AUTOMATION_TOOL_NAMES`). The bridge's
222
+ enumerated `AUTOMATION_TOOL_DEFAULTS` therefore gained `CronPauseSelf`
223
+ (src/backend/resolve.ts) — a headless bridge session never carries a run's
224
+ `automationId`, so the tool can never do anything there.
225
+
180
226
  **3.14.0 audit (2026-09-20, app-server 0.16.9 — live-probed end to end)**: the
181
227
  dynamic-workflow family (ten model tools led by `CreateWorkflow`) is OFF by
182
228
  default headless and enabled per PROCESS via
@@ -310,7 +356,7 @@ Notes per type (the ones with known bridge relevance):
310
356
  | `checkpoint.created` / `rewind.triggered` | Checkpoint + rewind lifecycle (rewinds initiated elsewhere are observable) |
311
357
  | `streamRecovery.updated` | Stream recovery progress — payload is an untyped `jsonObjectSchema` upstream; useful for the replay/gap-fill path |
312
358
  | `turn.started` payload extras (`index.ts:1168-1186`) | `executionKind:"agent"\|"controlOnly"` (controlOnly = no model turn — the bridge's own boot-resume ack could be classified by this instead of text-matching), `foregroundExecutionId` (feeds the precise v4 stop), `backgroundSource`, `intent`, `originMeta` |
313
- | `turn.steerQueued` / `turn.steerDrained` payloads (`index.ts:1191-1229`) | Queue length, `commandKind`, `delivery`, `targetTurnId`, drained `injectedMessageIds` — enough to render a proper "queued behind running turn" ACP update. Steer is only reachable via v4 delivery semantics (see Gotchas) — a steer caused by ANOTHER client on the same backend is visible here |
359
+ | `turn.steerQueued` / `turn.steerDrained` payloads (`index.ts:1191-1229`) | Queue length, `commandKind`, `delivery`, `targetTurnId`, drained `injectedMessageIds` — enough to render a proper "queued behind running turn" ACP update. Steer is REACHABLE again since `_session/steering` (#352, `v4/command` sendText) — but only the REQUEST path is wired; a steer caused by ANOTHER client on the same backend is still invisible until these events are translated |
314
360
  | `turn.completed` `resultType` + `cacheStats` (`index.ts:1230-1261`) | `resultType: success\|cancelled\|error_max_turns\|error_max_budget\|error_during_execution\|error_max_tool_calls`; `cacheStats{totalMessages, cachedMessages, lastCacheHit, cacheReadTokens?}` — rich terminal lines + cache-health visibility |
315
361
  | `turn.failed` `turnPhase` (`index.ts:1262-1269`) | Failure phase string for better triage |
316
362
  | `model.streaming` kinds (`index.ts:987-1014`) | 13 kinds incl. `reasoning_*` deltas — relevant if thinking streams are ever surfaced directly |
@@ -406,7 +452,8 @@ bridge reads plugin commands from disk instead).
406
452
  **Automation tool gating, corrected against source (2026-09-21)**: there is NO
407
453
  backend env gate — `ZCODE_ENABLE_AUTOMATION_TOOLS` exists only in the bridge
408
454
  (`src/backend/resolve.ts`). The backend registers `CronCreate/CronList/
409
- CronUpdate/CronDelete` whenever an `automationPort` is injected
455
+ CronUpdate/CronDelete` (+ `CronPauseSelf` since 0.17.1 — see the 3.17.1
456
+ audit entry) whenever an `automationPort` is injected
410
457
  (`core/src/runtime/helpers/runtime-tools.ts:66`), and the legacy protocol
411
458
  server injects one for every session create
412
459
  (`server-operations.ts:3370`) — so the backend ALWAYS registers them in
@@ -414,7 +461,8 @@ app-server mode. Opting out is entirely the bridge's per-session
414
461
  `toolDenylist` on create/resume (the `--disallowed-tools` argv flag is parsed
415
462
  but NOT consumed on the app-server path — #340, alignment item 10). Bonus:
416
463
  `AUTOMATION_MUTATION_TOOL_NAMES = [CronCreate, CronUpdate, CronDelete]` gets
417
- special turn-loop treatment (`turn-loop-state.ts:23`).
464
+ special turn-loop treatment (`turn-loop-state.ts:23`; upstream keeps
465
+ `CronPauseSelf` OUT of it by design).
418
466
 
419
467
  ## Alignment opportunities (2026-09-21, source-verified — ranked)
420
468
 
@@ -504,7 +552,9 @@ cache-read tokens`), non-success resultTypes surface verbatim as a
504
552
  allow-list env var) is a reasonable follow-up — same two sites,
505
553
  `session/send` rejects it. Regression tests: `tests/tool-denylist.test.ts`.
506
554
  11. **v4/command channel** as the single implementation surface for
507
- rewind/edit/feedback/queue UX later. PENDING.
555
+ rewind/edit/feedback/queue UX later. The steer half landed (#352):
556
+ `_session/steering` → `sendText requestedDelivery guide|queue` (src/handlers/steering.ts).
557
+ PENDING: rewind/edit-turn/feedback/queue UX.
508
558
 
509
559
  ## Verification method
510
560
 
package/docs/PROTOCOL.md CHANGED
@@ -781,6 +781,51 @@ steering moved to the v4 command/conversation API. The bridge's
781
781
  accordingly. Queued inputs still surface as `turn.steerQueued` /
782
782
  `turn.steerDrained` events (see above).
783
783
 
784
+ ### `_session/steering` — cross-adapter steering extension (#352)
785
+
786
+ The successor, wired onto the v4 command API (`v4/command` `sendText` with
787
+ `requestedDelivery:"guide" | "queue"`). The method name and reply shape follow
788
+ the cross-adapter convention introduced by `@agentclientprotocol/codex-acp`
789
+ and `@agentclientprotocol/claude-agent-acp`; the agent advertises it via
790
+ `InitializeResponse._meta.steering` (`{ supported: true, timings: ["now",
791
+ "next"] }` — `timings` is this bridge's additive field).
792
+
793
+ **Request:**
794
+
795
+ ```json
796
+ {
797
+ "id": 14,
798
+ "method": "_session/steering",
799
+ "params": {
800
+ "sessionId": "sess_abc123",
801
+ "prompt": [{ "type": "text", "text": "use the other approach" }],
802
+ "_meta": { "steering": { "priority": "now" } }
803
+ }
804
+ }
805
+ ```
806
+
807
+ - `prompt` — text blocks only (multi-block joins with newlines); the v4 steer
808
+ channel carries no attachments.
809
+ - `_meta.steering.priority` — `"now"` (default) injects into the live turn
810
+ (guide); `"next"` queues the text for the next turn boundary.
811
+ - `_meta.steering.idleBehavior` — only `"promptRequired"` is accepted; this
812
+ bridge never auto-starts a turn from a steering request.
813
+
814
+ **Reply** — one outcome object:
815
+
816
+ - `{ "outcome": "injected" }` — the text joined the running turn.
817
+ - `{ "outcome": "queued" }` — delivered at the next boundary (explicit `next`,
818
+ or the backend demoted guide to queue because the turn kind cannot take
819
+ live injection).
820
+ - `{ "outcome": "promptRequired", "reason": "noRunningTurn" }` — the session
821
+ is idle; the client should send a normal `session/prompt` instead.
822
+ - `{ "outcome": "startedNewTurn" }` — the turn ended between the bridge's
823
+ liveness check and the backend's admission, and the steer text started a
824
+ new turn (race window, reported honestly).
825
+
826
+ Steering a turn owned by another client (the desktop app) works — the liveness
827
+ fallback reads the session projection when no bridge turn is registered.
828
+
784
829
  ### `session/setMode`
785
830
 
786
831
  Switch the session mode.
@@ -1009,13 +1054,28 @@ The bridge's session-scoped `SessionTitleListener` (registered alongside the
1009
1054
  background-task listener) adopts `generated` and `custom` pushes — updating
1010
1055
  `sessionTitles` for every ACP alias of the conversation, the session summary,
1011
1056
  the tasks-index, the martty terminal tab title, and broadcasting an ACP
1012
- `session_info_update` to attached clients per alias. A manual rename wins:
1013
- sessions renamed through the bridge's remote rename endpoint (or adopted via
1014
- a `custom` push) are pinned in `server.titleUserSetBy`, and the durable
1015
- `title_overridden` flag in `tasks-index.sqlite` is consulted for renames that
1016
- predate the bridge process — later `generated` pushes never override them.
1017
- `default`/`first_input` pushes are ignored — the bridge already seeds the
1018
- first-prompt form itself (see "one-shot session title" in the handlers).
1057
+ `session_info_update` to attached clients per alias.
1058
+
1059
+ Auto naming happens **exactly once**: the first-prompt provisional seed may be
1060
+ replaced by the first `generated` push (`server.autoTitleFinalized` freezes the
1061
+ phase after it); every later `generated` push — a deferred sidecar result, the
1062
+ resume re-emission after the stored title event rotated out of the retention
1063
+ window — is ignored. Only a manual rename may change the title afterwards: the
1064
+ `/rename` slash command, the remote rename endpoint, or a `custom` push
1065
+ (another surface's rename, e.g. the desktop app). Manual renames are pinned in
1066
+ `server.titleUserSetBy` (all aliases), and the durable `title_overridden` flag
1067
+ in `tasks-index.sqlite` is consulted for renames that predate the bridge
1068
+ process — later `generated` pushes never override them. `default`/
1069
+ `first_input` pushes are ignored — the bridge already seeds the first-prompt
1070
+ form itself (see "one-shot session title" in the handlers).
1071
+
1072
+ A manual rename also reaches the BACKEND store via the v4 `renameSession`
1073
+ command (`titleSource=custom`, sticky — the backend's own auto generation is
1074
+ skipped from then on), so `session/list` reads, resume title re-emission, and
1075
+ the desktop app's v4 projection all converge on the user's title.
1076
+ `adoptStoredTitle` (load/resume) is pin-first: a sibling alias's known title,
1077
+ then the durable `title_overridden` title, and only then the backend's stored
1078
+ title.
1019
1079
 
1020
1080
  ### `session/cancelBackgroundTask`
1021
1081
 
@@ -924,19 +924,24 @@ POST {hub}/api/instances/{id}/sessions/{sessionId}/rename
924
924
  body: { "title": "new name" } → 200 { "ok": true, "title": "…" }
925
925
  ```
926
926
 
927
- The session title is set **once**, automatically, from the first prompt of a
928
- freshly created session (first non-empty line, capped at 80 chars) — this
929
- endpoint is the only later modifier. ACP has no client→agent rename channel,
930
- and an editor-side rename lives in the editor's own storage forever, so the
931
- remote side is where a rename enters the system.
932
-
933
- The bridge applies the rename everywhere: its in-memory title pin (no later
934
- automatic write can touch it), the discovery summary (live within one
935
- heartbeat), the ZCode App's tasks-index (`title_overridden=1`, same marker the
936
- App's own rename sets), and a `session_info_update` broadcast to every
937
- attached client — the editor tab updates live. The title is normalized like
938
- the auto-title: flattened to one line, trimmed, capped at 80 chars; an
939
- all-whitespace title is rejected with `400`.
927
+ The session title is set **once**, automatically: the first prompt seeds a
928
+ provisional title (first non-empty line, capped at 80 chars) and the backend's
929
+ first LLM-generated title may replace it — after that the title is frozen for
930
+ every automatic path. Only a manual rename may change it afterwards: this
931
+ endpoint, the `/rename <title>` slash command (editors and the CLI TUI), or a
932
+ rename made in the ZCode desktop app.
933
+
934
+ The bridge applies the rename everywhere (via the shared `renameSessionCore`):
935
+ its in-memory title pin for the FULL alias group (no later automatic write can
936
+ touch it), the backend's own store through the v4 `renameSession` command
937
+ (`titleSource=custom`, sticky — the backend never auto-generates over it, and
938
+ the desktop app's conversation view follows the same event), the discovery
939
+ summary (live within one heartbeat), the ZCode App's tasks-index
940
+ (`title_overridden=1`, same marker the App's own rename sets), and a
941
+ `session_info_update` broadcast to every attached client — the editor tab
942
+ updates live. The title is normalized like the auto-title: flattened to one
943
+ line, trimmed, capped at 80 chars; an all-whitespace title is rejected with
944
+ `400`.
940
945
 
941
946
  Errors: `400` missing/empty title or oversized body (>4 KB), `401` bad token,
942
947
  `404` unknown session (or instance), `502` bridge unreachable. Renaming during
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zcode-acp-server",
3
- "version": "0.80.0",
3
+ "version": "0.81.0",
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",