Skip to content

v0.2.4

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 09:51
· 8 commits to main since this release

Pi for Android v0.2.4

安装包说明 / APK Variants

  • pi-android-0.2.4-sideload28-arm64.apk:面向侧载与常规日常使用(targetSdk = 28,PRoot / TAWCROOT / Proroot 全兼容,推荐绝大多数设备安装)。
  • pi-android-0.2.4-modern36-arm64.apk:面向 Android 15/16 现代沙箱与权限行为验证(targetSdk = 36)。
  • 版本号:versionName = 0.2.4 · versionCode = 14

中文更新日志(v0.2.3 → v0.2.4)

1. 内核升级至 Pi 1.7.0 & 同步上游改动

  • 内置引擎升级至 @earendil-works/pi-coding-agent 1.7.0:同步刷新运行时锁文件、开源许可清单与 SDK 契约测试(361 项真实 SDK 检查全部通过)。
  • 移除已下线的安装遥测(enableInstallTelemetry):随官方 Pi 1.7.0 清理设置项、同步映射与旧文档。
  • 支持图片输出 Token 计量与定价:协议层新增 TokenUsage.imageOutput,供应商自定义模型表单新增可选 imageOutput 单价字段。
  • 适配新版凭据状态语义:正确区分 auth.json 中已保存但未解析的凭据状态(Saved (unresolved)),并允许直接清除/退出登录。

2. 扩展交互全量对齐官方 Pi 1.7.0 & 通知进入聊天流

  • 扩展通知(ctx.ui.notify)改为纯聊天流呈现:100% 对齐官方 interactive-mode 行为——通知直接追加在当前对话流底部(不落盘 .jsonl,切会话自动清空),连续 info 通知原地刷新防刷屏,warning / error 逐条保留;超长通知默认折叠、支持一键展开和一键复制全文,彻底告别 4 秒消失与遮挡屏幕问题。
  • 扩展 TUI / 浮层 / 输入交互全面修复与手机适配:修复扩展自定义组件、鼠标/滚轮回退、浮层焦点与尺寸、快捷键触发、自定义编辑器以及多处移动端触控与排版细节,并补齐 TranscriptReducer.reset() 状态清理。

3. 供应商覆盖表单(models.json)防误导重构

  • 内置供应商覆盖清晰引导:点进内置供应商覆盖页时自动展示默认 Base URL 与默认协议参考;明确标注顶层 接口协议 (api) 仅作用于下方新增自定义模型、不会修改内置模型,且支持再次点击已选协议取消选择。
  • 外层凭据状态联动提示:若该供应商已在上一层(auth.json)保存密钥,表单内直接展示绿色状态提示“外层凭据已保存(优先级高于此处)· 留空即可自动沿用”,无需重复粘贴。
  • 保存前校验与中文报错翻译:保存前对照 Pi 1.7.0 规则提前提示,清理 SDK 原始报错中的重复前缀并翻译高频报错(含恢复内置默认指引),同时补充 authHeader 前提说明。

4. 扩展包 / 更新页与多处旧界面全面翻新

  • 重做「扩展包与更新」页(PackagesScreen):采用全新现代卡片与操作栏设计,将「已配置包列表 + 检查更新 / 全部更新」置顶,安装包收进独立底部弹窗并保留官方 parseSource 实时预览;修复官方 Pi 1.7.0 下固定版本(npm/git)与本地路径仍显示无效「更新」按钮的问题;操作进度升级为带加载环与等宽日志面板的实时状态卡。
  • 重做「包与命令选项」页(PackageCommandOptionsScreen):替代旧版零散设置分组,清晰管理包安装命令(npmCommand)、技能斜杠命令、扩展启动参数与隐私分析开关。
  • 统一翻新资源枢纽、资源类型列表、设备能力与工具页:清理残余旧版 PiSettingsChip 按钮,全面换装现代 PiPrimaryButton / PiSecondaryButton 与项目层三态语义开关,全 App 视觉风格彻底统一。

English Changelog (v0.2.3 → v0.2.4)

1. Pi SDK 1.7.0 Upgrade & Upstream Parity

  • Upgraded embedded engine to @earendil-works/pi-coding-agent 1.7.0: Updated runtime lockfile, license manifests, and real-SDK contract tests (all 361 checks passing).
  • Removed deprecated enableInstallTelemetry: Cleaned up setting entries and session sync mappings to match Pi 1.7.0.
  • Image output token & pricing support: Added TokenUsage.imageOutput in protocol parsing and optional per-model cost.imageOutput in the custom provider form.
  • Updated stored-credential status handling: Properly displays { configured: false, source: "stored" } as Saved (unresolved) with logout/clear support.

2. Official-Parity Extension UX & Chat-Stream Notifications

  • Routed ctx.ui.notify into the chat transcript: Matches official Pi 1.7.0 interactive-mode — ephemeral in-memory notices append at the bottom of the chat stream (never persisted to .jsonl, cleared on session reset), consecutive info notices replace in-place to prevent spam, while warning and error append cleanly; long notices auto-collapse with 1-tap expand and copy.
  • Extension TUI & mobile interaction fixes: Polished extension surfaces, mouse/wheel fallbacks, overlay focus/bounds, shortcut dispatching, and mobile touch ergonomics, plus fixed TranscriptReducer.reset() cleanup.

3. Provider Override Form (models.json) UX Fixes

  • Built-in override clarity: Displays the built-in provider's default Base URL and api as reference hints, clearly explains that top-level api only applies to custom models[] entries (never built-in models), and lets users tap an active API chip again to clear it.
  • External credential awareness: Shows a clear green status banner when credentials are already saved in auth.json (which takes precedence over models.json), letting users leave API Key blank confidently.
  • Pre-save validation & localized SDK errors: Validates Pi 1.7.0 override rules up front, strips duplicated SDK error prefixes, and translates common validation errors into actionable guidance.

4. Redesigned Packages Screen & App-Wide UI Harmonization

  • Redesigned Packages & Updates screen (PackagesScreen): Surfaced installed packages and update actions to the top, moved package installation into a clean modal sheet with live parseSource inspection, added spinner + monospace console progress cards, and disabled no-op Update buttons on pinned (npm/git) and local packages to match Pi 1.7.0.
  • New Package & Command Options screen (PackageCommandOptionsScreen): Clean dedicated layout for npmCommand, skill commands, extension startup flags, and analytics opt-in.
  • Harmonized remaining screens: Replaced legacy PiSettingsChip controls across ResourceTypeScreen, ResourcesHubScreen, DeviceCapabilityScreen, and ToolsScreen with modern PiPrimaryButton / PiSecondaryButton and semantic 3-state project override pills.

Full Changelog: v0.2.3...v0.2.4