Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
Simon Willison · 2026/8/1 21:23:56
datasette-apps 0.2a0
AI 中文解读
核心亮点:Datasette Apps推出新工具,让AI能像测试员一样自己打开应用、运行代码,确保做出来的数据工具真的能用。
通俗解读:简单说,就是给AI助手加了两项新技能。第一项叫“应用体检”,AI写完一个数据应用后,可以偷偷打开它,用代码在里面点一点、量一量,就像检查网页有没有坏掉、按钮有没有对齐,全程不用人盯着。第二项叫“应用清单”,AI能自动列出你有权限修改的所有应用,方便它直接帮你改东西。这两项技能配合起来,AI从“只会写代码”升级成了“写完还会自己检查修改”的全能助手。
实际影响:过去用AI生成数据工具,经常拿到手才发现有bug,还得自己改。现在AI做完了会先自我检查,相当于多了个免费的质检员。对于不擅长编程的普通用户,这意味着用AI做表格、做报表、做数据展示会更省心,出错率更低。以后让AI帮你搭个数据看板或做个查询工具,可能一次就搞定,不用再反复修改了。
<p><strong>Release:</strong> <a href="https://github.com/datasette/datasette-apps/releases/tag/0.2a0">datasette-apps 0.2a0</a></p>
<blockquote>
<p>Changes that improve Datasette Apps when created and edited using <a href="https://agent.datasette.io/">Datasette Agent</a>:</p>
<ul>
<li>New <code>app_debug()</code> tool allowing agent to open an app (invisibly) and test it using JavaScript. <a href="https://github.com/datasette/datasette-apps/pull/33">#33</a></li>
<li>New <code>app_list()</code> tool for listing apps the user has permission to edit, so the agent can edit them. <a href="https://github.com/datasette/datasette-apps/issues/36">#36</a></li>
</ul>
</blockquote>
<p>The <code>app_debug()</code> tool is pretty neat: it works by displaying the app in a <code>opacity: 0</code> iframe with <code>pointer-events: none</code> (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.</p>
<p>This uses the new <code>context.browser_task()</code> mechanism added in <a href="https://simonwillison.net/2026/Jul/31/datasette-agent/">datasette-agent 0.4a0</a>.</p>
<p>Tags: <a href="https://simonwillison.net/tags/iframes">iframes</a>, <a href="https://simonwillison.net/tags/datasette">datasette</a>, <a href="https://simonwillison.net/tags/datasette-apps">datasette-apps</a></p>
分享
阅读原文 ↗