### 新功能
- 支持 Cloudflare Workers AI 提供商,需配置 `CLOUDFLARE_API_KEY`/`CLOUDFLARE_ACCOUNT_ID`。请参阅 [docs/providers.md#api-keys](docs/providers.md#api-keys)。 ([#3851](https://github.com/badlogic/pi-mono/pull/3851) by [@mchenco](https://github.com/mchenco))
- Pi 更新检查现使用 `pi.dev`,并通过 `pi/<version>` 用户代理标识 Pi。请参阅 [docs/packages.md](docs/packages.md)。 ([#3877](https://github.com/badlogic/pi-mono/pull/3877) by [@mitsuhiko](https://github.com/mitsuhiko))
### 新增
- 将 Cloudflare Workers AI 添加为内置提供商,支持 `CLOUDFLARE_API_KEY`/`CLOUDFLARE_ACCOUNT_ID` 配置、默认模型解析、`/login` 支持及提供商文档 ([#3851](https://github.com/badlogic/pi-mono/pull/3851) by [@mchenco](https://github.com/mchenco))。
### 更改
- 修改 Pi 版本检查逻辑,使用 `pi/<version>` 用户代理标识 Pi ([#3877](https://github.com/badlogic/pi-mono/pull/3877) by [@mitsuhiko](https://github.com/mitsuhiko))。
### 修复
- 修复配置选择器滚动指示器,现显示项目数量而非行数 ([#3820](https://github.com/badlogic/pi-mono/pull/3820) by [@aliou](https://github.com/aliou))。
- 修复导出的 HTML 文件,对嵌入的图片数据和会话元数据进行转义,防止构造的会话内容注入标记 ([#3819](https://github.com/badlogic/pi-mono/pull/3819) by [@justinpbarnett](https://github.com/justinpbarnett), [#3883](https://github.com/badlogic/pi-mono/pull/3883) by [@justinpbarnett](https://github.com/justinpbarnett))。
- 修复基于 Bun 的包管理器启动问题,通过相对于 Bun 安装布局定位全局 `node_modules` ([#3861](https://github.com/badlogic/pi-mono/pull/3861) by [@thirtythreeforty](https://github.com/thirtythreeforty))。
- 修复 Bedrock 推理配置文件能力检查,通过将配置文件 ARN 规范化为基础模型名称。
- 修复文件发现功能,在 `fd` 不可用时回退到 `fdfind`。
- 修复 `pi update` 命令,当已安装版本已是最新时跳过自我更新重装 ([#3853](https://github.com/badlogic/pi-mono/issues/3853))。
- 修复 Cloudflare Workers AI 归属头信息,使其遵循安装遥测设置。
- 修复 Windows 包管理器 shim 安装(包括符号链接的全局包根目录)下 `pi update --self` 的检测与执行,并在自我更新失败时打印手动回退命令 ([#3857](https://github.com/badlogic/pi-mono/issues/3857))。
### New Features
- Cloudflare Workers AI provider support with `CLOUDFLARE_API_KEY`/`CLOUDFLARE_ACCOUNT_ID` setup. See [docs/providers.md#api-keys](docs/providers.md#api-keys). ([#3851](https://github.com/badlogic/pi-mono/pull/3851) by [@mchenco](https://github.com/mchenco))
- Pi update checks now use `pi.dev` and identify Pi with a `pi/<version>` user agent. See [docs/packages.md](docs/packages.md). ([#3877](https://github.com/badlogic/pi-mono/pull/3877) by [@mitsuhiko](https://github.com/mitsuhiko))
### Added
- Added Cloudflare Workers AI as a built-in provider with `CLOUDFLARE_API_KEY`/`CLOUDFLARE_ACCOUNT_ID` setup, default model resolution, `/login` support, and provider documentation ([#3851](https://github.com/badlogic/pi-mono/pull/3851) by [@mchenco](https://github.com/mchenco)).
### Changed
- Changed Pi version checks to identify Pi with a `pi/<version>` user agent ([#3877](https://github.com/badlogic/pi-mono/pull/3877) by [@mitsuhiko](https://github.com/mitsuhiko)).
### Fixed
- Fixed config selector scroll indicators to show item counts instead of line counts ([#3820](https://github.com/badlogic/pi-mono/pull/3820) by [@aliou](https://github.com/aliou)).
- Fixed exported HTML to escape embedded image data and session metadata, preventing crafted session content from injecting markup ([#3819](https://github.com/badlogic/pi-mono/pull/3819) by [@justinpbarnett](https://github.com/justinpbarnett), [#3883](https://github.com/badlogic/pi-mono/pull/3883) by [@justinpbarnett](https://github.com/justinpbarnett)).
- Fixed Bun-based package manager startup by locating global `node_modules` relative to Bun's install layout ([#3861](https://github.com/badlogic/pi-mono/pull/3861) by [@thirtythreeforty](https://github.com/thirtythreeforty)).
- Fixed Bedrock inference profile capability checks by normalizing profile ARNs to the underlying model name.
- Fixed file discovery to fall back to `fdfind` when `fd` is unavailable.
- Fixed `pi update` to skip self-update reinstalls when the installed version is already current ([#3853](https://github.com/badlogic/pi-mono/issues/3853)).
- Fixed Cloudflare Workers AI attribution headers to honor the install telemetry setting.
- Fixed `pi update --self` detection and execution for Windows package-manager shim installs, including symlinked global package roots, and print the manual fallback command when self-update fails ([#3857](https://github.com/badlogic/pi-mono/issues/3857)).