Wraith.Kiro.ACP.Fake (Wraith v0.1.0)

View Source

A scripted Kiro Agent Server (ported from shadow_corp's fake) with the function surface of Wraith.Kiro.ACP. Used by tests and by the dev studio when no MicroVM image is configured.

A prompt streams session/update notifications to the owner and ends the turn with a 0.25-credit summary. The text steers the script:

  • tool — one tool call + a session/request_permission
  • question — a _kiro/userInput question
  • fail — a display error; crash — the connection drops
  • !widget <slug> — the agent reads widget_docs, then calls widget_test and widget_save over the bridge with a small clap widget (so the whole tool path is exercised offline)
  • !post <title> — the agent calls post_create
  • !info — the agent calls site_info
  • anything else — "Acknowledged: …" and the text echoed back

Like KAS, sessions outlive connections: what was said is kept per session id in a public ETS table and session/load replays it.

Summary

Functions

Returns a specification to start this module under a supervisor.

Every _kiro/permission/respond this connection saw (tests).

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

permits(conn)

Every _kiro/permission/respond this connection saw (tests).

request(conn, method, params, timeout \\ 60000)