Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435from __future__ import annotations
from typing import cast
from albedo_api import Host, PythonApi
host: Host
async def vent(topic: str, message: str, suggestion: str = "", title: str = "") -> dict: """Record one complaint for the user to review in /paperclips.""" return cast( dict, await host( "paperclips.vent", { "topic": topic, "message": message, "suggestion": suggestion, "title": title, }, ), )
async def vents(limit: int = 20) -> list[dict]: """Recent vents for this workspace, newest first.""" return cast(list[dict], await host("paperclips.list", {"limit": limit}))
def setup(api: PythonApi) -> dict[str, object]: global host host = api.host return {"vent": vent, "vents": vents}