← 返回更新日志

Pi v0.44.0

2026-01-12 · GitHub 原文
### 破坏性变更 - `pi.getAllTools()` 现在返回 `ToolInfo[]`(包含 `name` 和 `description`)而非 `string[]`。仅需名称的扩展可使用 `.map(t => t.name)`。 ([#648](https://github.com/badlogic/pi-mono/pull/648) by [@carsonfarmer](https://github.com/carsonfarmer)) ### 新增 - 会话命名:`/name <name>` 命令用于设置显示名称,该名称将显示在会话选择器中,替代首条消息。适用于区分分叉会话。扩展可使用 `pi.setSessionName()` 和 `pi.getSessionName()`。 ([#650](https://github.com/badlogic/pi-mono/pull/650) by [@scutifer](https://github.com/scutifer)) - 扩展示例:`notify.ts`,通过 OSC 777 转义序列实现桌面通知 ([#658](https://github.com/badlogic/pi-mono/pull/658) by [@ferologics](https://github.com/ferologics)) - 排队消息的内联提示,显示 `Alt+Up` 恢复快捷键 ([#657](https://github.com/badlogic/pi-mono/pull/657) by [@tmustier](https://github.com/tmustier)) - `/resume` 会话选择器中的 Page Up/Down 导航功能,可每次跳转 5 项 ([#662](https://github.com/badlogic/pi-mono/pull/662) by [@aliou](https://github.com/aliou)) - `/settings` 菜单支持模糊搜索:输入文本可按标签过滤设置项 ([#643](https://github.com/badlogic/pi-mono/pull/643) by [@ninlds](https://github.com/ninlds)) ### 修复 - 当当前文件夹没有会话时,会话选择器现在保持打开状态,允许使用 Tab 键切换到“全部”范围 ([#661](https://github.com/badlogic/pi-mono/pull/661) by [@aliou](https://github.com/aliou)) - 使用 `getSettingsListTheme()` 等主题工具的扩展现在可在 tsx 开发模式下正常运行