Skip to content

v1.0.2

Choose a tag to compare

@ct-jyjntc ct-jyjntc released this 30 Jul 11:04
· 94 commits to main since this release

中文

基于 v1.0.1..v1.0.2 的提交整理。

新增

  • 模型过滤与目录发现

    • 模型数 > 8 时,ChatInput 显示过滤输入框
    • 模型目录(catalog)与发现(discover)API:/api/models-config/catalog/api/models-config/discover
    • 目录匹配 / 价格推荐 / 搜索(model-catalog
    • 发现鉴权(model-discovery-auth
    • ModelsConfig 集成目录导入与 UI
    • 相关 i18n 与单元测试
  • 应用内更新提示

    • 共享 app-update-store(检查 / 缓存 / 自动轮询)
    • 顶栏更新通知 chip
    • 设置页与更新状态联动
  • 会话侧边栏时间分组

    • 按时间桶(今天 / 昨天 / 更早等)分组
    • 会话项更紧凑的布局
  • 全屏图片预览

    • 可复用 PreviewableImage 组件
    • Markdown 图片与输入区缩略图统一支持全屏预览
  • 用量统计 UI 重做

    • 热力图、趋势图、模型拆分布局重设计
    • 去掉冗余手动刷新按钮(依赖缓存 / 预取)
  • 共享设置 store

    • web-settings-store 客户端缓存与订阅
    • 设置读取 / 补丁 / 失效 / 带模型列表拉取
  • Diff 视图组件

    • 新增 DiffView,供文件 / Git 差异展示复用
  • Context 标签徽章

    • ContextTabBadge 展示上下文相关状态

修复

  • 网络测试用真实轻量端点替换占位域名
  • 侧边栏下拉:dropdownRef 挂到父行;New / Refresh 时正确关闭
  • 背景色从 oklch 改为 hex,提升兼容性

改进

  • SSE 性能

    • 合并 / 投影 message_update,降低带宽与重渲染
    • 非 update 事件前 flush,保证顺序
    • 会话 header 用轻量 readSessionHeader(),少开完整 SessionManager
  • 会话读取优化

    • session-reader 增强 header / context / export 路径
    • 多条 API 复用更轻量的会话文件读取
  • Thinking 等级标签与下拉文案简化

  • Chat / Minimap / MessageView / Markdown 渲染与展示逻辑整理

  • Git 变更解析与展示能力扩展

  • LSP health 信息补充

  • 协作 live 会话能力增强

内部调整

  • 新增模块:model-catalogmodel-discoverymodel-discovery-authapp-update-storeweb-settings-storePreviewableImageDiffViewContextTabBadge
  • 覆盖 rpc-manageruseAgentSessionsession-readergit-changescollab-live 等核心路径
  • 版本:@ct-jyjntc/pi-web@1.0.2

安装说明(本 Release 附件)

macOS

  • 附件:Pi-Web-1.0.2-arm64.dmg(Apple Silicon)
  • 签名:ad-hoc( Apple 公证)
  • 若 Gatekeeper 拦截:
# 方式 1:右键 App → 打开 → 打开
# 方式 2:
xattr -cr "/Applications/Pi Web.app"
open "/Applications/Pi Web.app"

Windows

  • 附件:Pi-Web-1.0.2-x64.exe(Windows x64 NSIS 安装包)
  • 双击安装,可自定义安装目录;安装后会创建桌面与开始菜单快捷方式。
  • 如 SmartScreen 提示「Windows 已保护你的电脑」:点击「更多信息」→「仍要运行」。

English

Prepared from commits in v1.0.1..v1.0.2.

Added

  • Model filtering & catalog discovery

    • Filter box in ChatInput when more than 8 models are available
    • Catalog + discover APIs: /api/models-config/catalog, /api/models-config/discover
    • Match / price recommend / search via model-catalog
    • Discovery auth helper
    • ModelsConfig catalog import UI
    • i18n + unit tests
  • In-app update notification

    • Shared app-update-store (check / cache / auto-poll)
    • Top-bar update chip
    • Settings page wired to update state
  • Sidebar time buckets

    • Group sessions by today / yesterday / older
    • More compact session row layout
  • Full-screen image preview

    • Reusable PreviewableImage
    • Markdown images + composer thumbnails open full-screen
  • Usage stats UI revamp

    • Redesigned heatmap, trend, model split
    • Dropped redundant manual refresh (cache / prefetch)
  • Shared web-settings store

    • Client cache + subscribe (web-settings-store)
    • get / patch / invalidate / fetch-with-models
  • DiffView component for shared file/Git diffs

  • ContextTabBadge for context status in tabs

Fixed

  • Network test uses a real lightweight endpoint instead of a placeholder domain
  • Sidebar dropdown: ref on parent row; close on New/Refresh
  • Replace oklch background colors with hex for broader compatibility

Improved

  • SSE performance

    • Project + coalesce message_update events
    • Flush before non-update events for ordering
    • Lightweight readSessionHeader() instead of full SessionManager opens
  • Session read path

    • Stronger header / context / export handling in session-reader
    • More APIs reuse lighter session file reads
  • Simpler thinking-level labels / dropdown

  • Chat / minimap / message / markdown display cleanup

  • Broader git-changes parsing/display

  • Richer LSP health reporting

  • Stronger collab live session handling

Internal

  • New modules: model-catalog, model-discovery, model-discovery-auth, app-update-store, web-settings-store, PreviewableImage, DiffView, ContextTabBadge
  • Touched core paths in rpc-manager, useAgentSession, session-reader, git-changes, collab-live
  • Version: @ct-jyjntc/pi-web@1.0.2

Install Notes

macOS

  • Asset: Pi-Web-1.0.2-arm64.dmg (Apple Silicon)
  • Signing: ad-hoc (not Apple notarized)
  • If Gatekeeper blocks:
xattr -cr "/Applications/Pi Web.app"
open "/Applications/Pi Web.app"

Windows

  • Asset: Pi-Web-1.0.2-x64.exe (Windows x64 NSIS installer)
  • Run the installer; you can choose the install directory. Desktop and Start Menu shortcuts are created.
  • If SmartScreen says "Windows protected your PC": click "More info" → "Run anyway".