Repository navigation
中文
基于 v0.19.0..v0.20.0 的提交整理。
npm install -g @agegr/pi-web@latest新增
- 在文件树中管理文件:文件行的 ⋯ 菜单和右键菜单提供提及、下载、重命名、新建文件夹和删除(删除在菜单内确认,Shift+Delete 跳过确认);文件栏新增「新建文件夹」按钮。把行拖到文件夹上即可移动,拖到输入框插入它的
@引用;移动和重命名可撤销,已打开的文件标签页随之更新。操作仍受/api/files允许范围约束:不会覆盖已有文件,拒绝.git(任意大小写)、项目文件夹和含 worktree 的文件夹,跨磁盘移动会直接说明。(#1838) - 上传文件夹(含子文件夹):把文件夹拖到文件树或对话中,或从文件栏的「上传」菜单选择「上传文件夹」,会保留其目录结构。文件夹内的点开头条目(
.DS_Store、.git等)会被跳过;替换 / 跳过仍按文件询问;单次上传总计仍不超过 100 MB,在发送前就在浏览器中检查。拖到对话中只插入一次@folder/。(#1840,来自 chenyanchen 的 #1786) - 扩展斜杠命令的参数补全:扩展通过 pi 标准的
getArgumentCompletions(prefix)提供的参数建议,现在在网页输入框中也会显示,与 CLI 一致,扩展无需改动。(#1829,感谢 wbw1537,修复 #1805) - 批量删除自定义 provider 的模型:设置 › 模型中,自定义 provider 的底栏新增「选择」,可单击、Shift 范围选择、Ctrl/Cmd 多选,然后「全选 / 清除 / 删除 (n) / 完成」;删除只改草稿,点保存后才写入
models.json。(#1831,感谢 zinc0x1E,来自 #1813)
修复
- 子 Agent:关闭内置的 general-purpose 后,
Agent工具不再声称默认使用它;未指定subagent_type的新调用会返回可用类型列表,而不是报 "Unknown or disabled subagent profile"。(#1839,修复 szdxdxdx 报告的 #1833) - 会话:
- 文件:文件树较短时,拖放提示固定在文件面板底部,不再随展开的文件夹移动。(a1e112e)
改进
- pi 升级到 1.7.0:pi 1.7.0 会在启动诊断中报告无效的
models.json,Pi Web 已在输入框上方显示该错误,因此不再在每个会话的对话中重复提示。完整列表见 pi v1.7.0。(0de4872) - 侧边栏行高统一:会话列表和文件树的行及按钮统一为两种尺寸(常规与紧凑,触屏下更大);平板上两个列表不再混用不同尺寸。(2542554)
内部调整
- 发布 npm 包
@agegr/pi-web@0.20.0和镜像ghcr.io/agegr/pi-web:0.20.0。
English
Prepared from commits in v0.19.0..v0.20.0.
npm install -g @agegr/pi-web@latestAdded
- Manage files in the file tree: a file row's ⋯ menu and right-click menu offer Mention, Download, Rename, New folder and Delete (Delete asks inside the menu; Shift+Delete skips the question), and the files row gains a New folder key. Drag a row onto a folder to move it, or onto the composer to insert its
@mention; moves and renames offer Undo, and open file tabs follow them. Everything stays inside the/api/filesallow-list: a move never overwrites,.git(in any case), project folders and folders holding a worktree are refused, and a move across disks says so. (#1838) - Upload a folder with its subfolders: drop a folder onto the file tree or the chat, or pick Upload folder from the files' Upload menu, and its structure is kept. Dot entries inside it (
.DS_Store,.git) are left out; Replace / Skip is still asked per file; one upload still totals at most 100 MB, now checked in the browser before anything is sent. A chat drop inserts@folder/once. (#1840, for #1786 by chenyanchen) - Argument completion for extension slash commands: suggestions an extension supplies through pi's standard
getArgumentCompletions(prefix)now show in the web composer as they do in the CLI, with no extension changes. (#1829, thanks wbw1537, fixes #1805) - Delete a custom provider's models in bulk: in Settings › Models, a custom provider's footer gains Select; click, Shift-click a range or Ctrl/Cmd-click, then Select all / Clear / Delete (n) / Done. Delete changes the draft only; Save writes
models.json. (#1831, thanks zinc0x1E, for #1813)
Fixed
- Subagents: with the built-in general-purpose profile switched off, the
Agenttool no longer claims it as the default; a new call withoutsubagent_typeis refused with the available types instead of "Unknown or disabled subagent profile". (#1839, fixes #1833 by szdxdxdx) - Sessions:
- After paging up into earlier messages, switching to another session and back keeps the wider window, and messages no longer fall out of step with their entries. (#1836, thanks Qiaochu Hu)
- A bare
<session-reference>mentioned in prose no longer opens a reference block that swallows the rest of the message. (#1837, thanks Qiaochu Hu)
- Files: below a short tree, the drop hint stays at the bottom of the files panel instead of moving as folders open. (a1e112e)
Improved
- pi upgraded to 1.7.0: pi 1.7.0 reports an invalid
models.jsonin its startup diagnostics; Pi Web already shows that error above the composer, so sessions no longer repeat it in their transcripts. See pi v1.7.0 for the full list. (0de4872) - Sidebar row sizes: session rows, the file tree and their buttons now use two sizes (regular and compact, larger on touch); on a tablet the two lists no longer mix sizes. (2542554)
Internal
- Published npm package
@agegr/pi-web@0.20.0and imageghcr.io/agegr/pi-web:0.20.0.