Wraith. Studio
(Wraith v0.1.0)
View Source
The agent studio: a Kiro agent, running on a MicroVM (or the offline
fake), that builds this site with you — writes posts, scripts widgets,
changes settings — through Wraith.Studio.Tools over the bridge.
One site has one studio (Wraith.Studio.Server, a singleton), which
owns one KAS conversation at a time (sessions/0 lists past ones; new_session/1
starts a fresh one). The Kiro API key is set once (set_key/1,
Vault-encrypted into the site item) or comes from KIRO_API_KEY.
Events for LiveViews are on the "studio" PubSub topic:
{:studio, :entries, [entry]} # the whole transcript (replace)
{:studio, :entry, entry} # one new/changed entry (upsert by id)
{:studio, :state, %{phase, turn, pending}} # phase: :off | :booting | :ready | :error
Summary
Functions
The custom agent the studio conversation runs as: built-ins plus the wraith server.
The current session row, created if none.
Persisted transcript entries of a session, oldest first.
The key in the clear — for the VM payload only.
Verify and store a Kiro API key. Shows only its hint afterwards.
Functions
The custom agent the studio conversation runs as: built-ins plus the wraith server.
The current session row, created if none.
Persisted transcript entries of a session, oldest first.
The key in the clear — for the VM payload only.
Verify and store a Kiro API key. Shows only its hint afterwards.