# datasette-apps 0.2a0 发布：新增 app_debug（） 与 app_list（） 工具

- 来源：Simon Willison 博客
- 发布时间：2026-08-02 05:23
- AIHOT 分数：49
- AIHOT 链接：https://aihot.virxact.com/items/cmsawqsdj052mromzrn2hgq41
- 原文链接：https://simonwillison.net/2026/Aug/1/datasette-apps

## AI 摘要

datasette-apps 0.2a0 发布，新增 app_debug() 工具，允许 Datasette Agent 在 opacity: 0 且 pointer-events: none 的隐藏 iframe 中执行 JavaScript，对应用进行冒烟测试并测量元素尺寸；新增 app_list() 工具，用于列出用户有编辑权限的应用。

## 正文

Release: datasette-apps 0.2a0

Changes that improve Datasette Apps when created and edited using Datasette Agent:

New app_debug() tool allowing agent to open an app (invisibly) and test it using JavaScript. #33

New app_list() tool for listing apps the user has permission to edit, so the agent can edit them. #36

The app_debug() tool is pretty neat: it works by displaying the app in a opacity: 0 iframe with pointer-events: none (so it can't be seen or interacted with) and then executing agent-provided JavaScript inside that sandboxed iframe. This means the agent can smoke test that the app is working and even do things like measure the dimensions of different elements.

This uses the new context.browser_task() mechanism added in datasette-agent 0.4a0.

Tags: iframes, datasette, datasette-apps
