Wraith. Studio. Server
(Wraith v0.1.0)
View Source
The one process behind the studio (ported in spirit from shadow_corp's
Safehouses.Server, cut down to one conversation):
wake/1— start (or re-use) the VM throughWraith.Kiro.Runtime, open the ACP WebSocket,initialize, dial the bridge, thenensure_session+set_modefor the custom agent,load_sessionto replay history.prompt/2— one turn at a time;session/updatenotifications become transcript entries (Wraith.Studio.Transcript) broadcast to the LiveView and persisted.- Agent→client requests:
session/request_permissionis held inpendinguntil the owner decides (permit/2);_kiro/userInputlikewise (answer/2);bridge/httpis answered at once byWraith.Kiro.Bridge.handle/2withWraith.Studio.Tools.
State phases: :off (no VM), :booting, :ready, :error.
Summary
Functions
Returns a specification to start this module under a supervisor.