Datasette-agent 0.3a0 Adds Execute_Write_SQL Tool with User Approval and Chat CLI Enhancements
English summary
The 0.3a0 release of datasette-agent introduces the execute_write_sql tool, which writes to a database after requesting user approval and respecting user permissions. The chat terminal mode now supports user approvals and three new options: --root, --yes, and --unsafe for auto-approval. Tools can provide plain text alternatives to HTML for CLI display. Users can now directly chat with a specific database and modify it via prompts like 'create a notes table' using the --unsafe flag.
Chinese summary
Datasette-agent 0.3a0 版本新增 execute_write_sql 工具,该工具在请求用户批准并遵循用户权限后向数据库写入数据。聊天终端模式现在支持用户审批,并添加了三个新选项:--root、--yes 和 --unsafe 用于自动批准。工具可以为 CLI 显示提供纯文本形式的 HTML 备选。用户现在可使用 --unsafe 标志直接与特定数据库聊天并通过提示词(如“创建笔记表”)修改数据库。
Key points
New execute_write_sql tool writes to database with user approval and permission checks.
新的 execute_write_sql 工具在用户批准和权限检查下写入数据库。
Chat terminal mode enhanced with user approval support and new options: --root, --yes, --unsafe.
聊天终端模式增强,支持用户审批,并新增 --root、--yes、--unsafe 选项。
Tools can now output plain text instead of HTML for the CLI chat interface.
工具现在可以为 CLI 聊天界面输出纯文本以替代 HTML。
Direct database modification via chat prompts like 'create a notes table' is now possible.
现在可以通过聊天提示词(如“创建笔记表”)直接修改数据库。