Simon Willison·· 1 天前AI 评分22
Datasette Apps 0.3a0 发布,增强与 Datasette Agent 的集成
datasette-apps 0.3a0
AI 导读
Datasette Apps 0.3a0 发布,改进了在 Datasette 内托管和编辑自定义 HTML 应用时与 Datasette Agent 的集成。
摘要与补充说明
用户现在可在 Datasette Agent 聊天消息中输入 # 来标记应用,系统会从用户有权限查看的应用中自动补全。新增的 app_add_stored_queries() 和 app_remove_stored_queries() 工具让智能体管理应用可调用的存储查询,授予写查询前需用户批准。app_create() 现在会校验每个请求的存储查询是否存在且用户可查看,并在创建应用前要求用户批准写查询。
正文
Datasette Apps adds support for hosting and editing custom HTML applications inside of Datasette.
These can be created by hand, but it's easier to create them using LLMs via Datasette Agent. This release improves that integration:
- Apps can now be tagged in Datasette Agent chat messages by typing
#, which autocompletes from the apps the user has permission to view.- New
app_add_stored_queries()andapp_remove_stored_queries()tools let the agent manage which stored queries an app is allowed to call. Granting a write query requires approval from the user first.app_create()now checks that each requested stored query exists and that the user can view it, and asks the user to approve any write queries before the app is created.- The "View app" buttons shown by the agent tools, and the links on
#app references, now open the app full screen in the Datasette Agent panel.