fix(acp): repair mentor bridge for adapter 0.21.5
Two bugs after the engine update, both found via a live NDJSON repro against the real binary: session/new now requires mcpServers in the ACP SDK schema (NewSessionRequest). Museion sent only cwd, the engine answered -32602, the handshake threw, and the pane showed "the mentor engine stopped" — a validation rejection dressed as a crash. Send the honest empty list; Museion ships no MCP servers (#44 invariant, now pinned on the wire by a strict fake in tests). The advisory version-drift note compared raw strings: the gate records the derived version from `acp --version` (0.21.5+2177.g735e426) while initialize answers the base version (agentInfo.version -> 0.21.5), fabricating drift on every launch. Compare base versions (strip +build metadata); real drift still fires. Wire facts re-verified against adapter 0.21.5; docs updated.
This commit is contained in:
1 parent
e5490ed290
commit
de76a50cc6
6 files changed
+97
-11
No files matched your search
@@ -2,11 +2,11 @@
|
||||
// ACPEngineClient.swift
|
||||
// Museion
|
||||
//
|
||||
// M0 ACP bridge (#14): a hand-rolled thin client speaking NDJSON JSON-RPC on
|
||||
// stdio to `hermes acp -p museion` (ponytail: no Swift ACP SDK exists;
|
||||
// revisit if one appears). Wire facts verified against adapter 0.20.6 —
|
||||
// one JSON message per \n-terminated line, stdout is the wire, stderr is
|
||||
// engine logs (never parsed for protocol state).
|
||||
// M0 ACP bridge (#14): a hand-rolled thin client speaking NDJSON JSON-RPC on
|
||||
// stdio to `hermes acp -p museion` (ponytail: no Swift ACP SDK exists;
|
||||
// revisit if one appears). Wire facts verified against adapter 0.21.5 —
|
||||
// one JSON message per \n-terminated line, stdout is the wire, stderr is
|
||||
// engine logs (never parsed for protocol state).
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
Reference in new issue
Block a user