Simon Willison·· 19 天前AI 评分38
Datasette Apps 0.3a0 改进与 Datasette Agent 的集成
datasette-apps 0.3a0
AI 导读
Datasette Apps 0.3a0 改进了与 Datasette Agent 的集成:用户可在聊天消息中输入 # 标记应用,系统会根据其查看权限自动补全。新增的工具可管理应用获准调用的已存储查询;添加写入查询需用户批准,创建应用时也会检查查询是否存在及用户是否有权查看。
正文
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.
来源:Simon Willison · simonwillison.net