← 返回更新日志

Pi v0.52.9

2026-02-08 · GitHub 原文
### 新功能 - 扩展现在可以通过 `ctx.reload()` 触发完整的运行时重载,适用于热重载配置或重启代理。请参阅 [docs/extensions.md](docs/extensions.md) 和 [`reload-runtime` 示例](examples/extensions/reload-runtime.ts) ([#1371](https://github.com/badlogic/pi-mono/issues/1371)) - 新增 CLI 禁用标志的短别名:`-ne`(`--no-extensions`)、`-ns`(`--no-skills`)和 `-np`(`--no-prompt-templates`),以提升交互式使用和脚本编写的效率。 - `/export` 生成的 HTML 现在包含可折叠的工具输入模式(参数名称、类型和描述),改进了会话审查与共享工作流 ([#1416](https://github.com/badlogic/pi-mono/pull/1416),贡献者:[@marchellodev](https://github.com/marchellodev))。 - `pi.getAllTools()` 现在除了名称和描述外,还会暴露工具参数,从而支持更丰富的扩展集成 ([#1416](https://github.com/badlogic/pi-mono/pull/1416),贡献者:[@marchellodev](https://github.com/marchellodev))。 ### 新增 - 扩展 API 中新增 `ctx.reload()`,用于以编程方式触发运行时重载 ([#1371](https://github.com/badlogic/pi-mono/issues/1371)) - 为禁用标志添加短别名:`-ne` 对应 `--no-extensions`,`-ns` 对应 `--no-skills`,`-np` 对应 `--no-prompt-templates` - `/export` HTML 现在在每个工具下方包含一个可折叠区域,展示工具输入模式(参数名称、类型、描述) ([#1416](https://github.com/badlogic/pi-mono/pull/1416),贡献者:[@marchellodev](https://github.com/marchellodev)) - `pi.getAllTools()` 现在除名称和描述外,还会返回工具参数 ([#1416](https://github.com/badlogic/pi-mono/pull/1416),贡献者:[@marchellodev](https://github.com/marchellodev)) ### 修复 - 修复扩展源码解析问题,使以点号开头的本地路径(例如 `.pi/extensions/foo.ts`)被正确识别为本地路径,而非 Git URL - 修复 Windows 上因缺少 `unzip` 导致 `fd`/`rg` 下载失败的问题;现在对 `.tar.gz` 和 `.zip` 均使用 `tar` 进行解压,并改进了错误报告机制 ([#1348](https://github.com/badlogic/pi-mono/issues/1348)) - 修复 RPC 模式文档错误地将 `ctx.hasUI` 描述为 `false` 的问题;实际上该值为 `true`,因为对话框和“发送即忘”类型的 UI 方法通过 RPC 子协议工作。同时补充记录了缺失、不支持或降级的方法(`pasteToEditor`、`getAllThemes`、`getTheme`、`setTheme`) ([#1411](https://github.com/badlogic/pi-mono/pull/1411),贡献者:[@aliou](https://github.com/aliou)) - 通过在启动时随 `fd` 一同下载,修复了 bash 工具中 `rg` 不可用的问题 ([#1348](https://github.com/badlogic/pi-mono/issues/1348)) - 修复 `custom-compaction` 示例,使其正确调用 `ModelRegistry` ([#1387](https://github.com/badlogic/pi-mono/issues/1387)) - Google 提供商现在在工具声明中支持完整的 JSON Schema(包括 `anyOf`、`oneOf`、`const` 等) ([#1398](https://github.com/badlogic/pi-mono/issues/1398),贡献者:[@jarib](https://github.com/jarib)) - 回退错误的 Antigravity 模型更改:将 `claude-opus-4-6-thinking` 恢复为 `claude-opus-4-5-thinking`(该模型在 Antigravity 端点不存在) - 更新 Antigravity 系统指令为更紧凑的版本,以兼容 Google Gemini CLI - 修正 Claude Sonnet 4 和 4.5 的 opencode 上下文窗口参数 ([#1383](https://github.com/badlogic/pi-mono/issues/1383)) - 修复子代理示例中未知代理的错误提示,现在会包含可用的代理名称 ([#1414](https://github.com/badlogic/pi-mono/pull/1414),贡献者:[@dnouri](https://github.com/dnouri))