datasette-apps 0.2a0 Lets the Agent Test Its Own Apps in a Hidden Browser
datasette-apps 0.2a0 adds an app_debug() tool that lets Datasette Agent invisibly open and test an app with JavaScript, plus an app_list() tool for enumerating editable apps.
What it is
A new alpha release of datasette-apps, the component that lets Datasette Agent create and edit small web apps on top of Datasette.
What it does
app_debug() opens an app invisibly in a browser context and runs JavaScript against it so the agent can verify its own work before handing it back, while app_list() lets the agent enumerate which apps a user has permission to edit so it can pick the right target to modify.
Why it matters
This closes a gap similar in spirit to the browser_task mechanism added in datasette-agent 0.4a0: instead of an agent guessing whether generated app code works, it can now actually load and exercise the app before declaring success.
How to use it
Update to datasette-apps 0.2a0 alongside a current Datasette Agent install; the app_debug and app_list tools become available to the agent automatically once both packages are current.