pi-webapp 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/README.zh-CN.md +3 -0
- package/dist/extension.js +19 -19
- package/package.json +2 -2
- package/web/dist/.vite/manifest.json +18 -18
- package/web/dist/assets/app-D-yOwj1g.js +542 -0
- package/web/dist/assets/app.js +4 -4
- package/web/dist/assets/{graphql-IPoCyjbx.js → graphql-CPu4t9Rb.js} +1 -1
- package/web/dist/assets/{http-k59Hanmf.js → http-CyXgDlvg.js} +1 -1
- package/web/dist/assets/{php-BG9P_ECJ.js → php-yXDw_aVH.js} +1 -1
- package/web/dist/assets/{rst-Rxh6XweC.js → rst-BNRqfzXQ.js} +1 -1
- package/web/dist/assets/{ruby-vsmpeItB.js → ruby-DTpjfrpO.js} +1 -1
- package/web/dist/assets/style.css +1 -1
- package/web/dist/assets/{svelte-BbsEXeJC.js → svelte-CV4VbUXv.js} +1 -1
- package/web/dist/assets/{telemetry-client-BUyFe34_.js → telemetry-client-CBQBug9X.js} +1 -1
- package/web/dist/assets/{vue-DgFjFt96.js → vue-Bx5OMyw-.js} +1 -1
- package/web/dist/assets/app-Boh5DRzv.js +0 -542
package/README.md
CHANGED
|
@@ -41,11 +41,14 @@ In Pi, enter `/web` to open the interface in your default browser. Pi also print
|
|
|
41
41
|
- View the current conversation with Markdown, streaming output, expandable reasoning and tool calls, token usage, and a turn-by-turn trace.
|
|
42
42
|
- Send messages, pause and continue a run, start a new Pi session, and change the current model or thinking level. The bottom-right control pauses an active run; an empty composer offers Continue after pausing, including after refreshing or reopening the session. Continue uses an internal control action without adding a user message; the model makes a new request based on existing progress, and plan mode still requires fresh approval.
|
|
43
43
|
- Browse workspaces and saved sessions. Add a workspace with the native directory picker when available, or use the built-in directory browser over SSH.
|
|
44
|
+
- Open the right sidebar from the permanent control in the conversation’s upper-right corner. Choose **Workspace files** to browse the current session’s directory tree and open read-only file tabs. Workspace-relative and in-workspace absolute file links in the conversation also open these previews; external URLs still open in a new tab. Previews support highlighted code with line numbers, Markdown with preview/source modes, and PNG/JPEG/GIF/WebP images with a lightbox. The sidebar supports resizing, split panes, fullscreen, and plugin content. Switching chats retains their tabs and expanded directories until the page reloads. Manually reload listings or previews as needed. Listings show up to 1,000 entries per directory; text previews allow up to 512 KB / 10,000 lines, and images up to 8 MB. HTML/SVG remain source text; unsupported binary files show a notice. Reads, including resolved symlink targets, stay within the current session’s workspace.
|
|
44
45
|
- Attach up to 20 files of 20 MB each by selecting, dropping, or pasting them. Images show previews and are also sent as Pi image content.
|
|
45
46
|
- Manage appearance, Pi packages, extensions, skills, and models from the settings panel. The Models page can add models, edit display names, context windows, output limits, and input types, and restore built-in defaults; changes are saved to Pi's `models.json`. Browser sign-in opens the provider's authorization page automatically; manual code entry remains available when a callback cannot reach Pi. Stored provider credentials can also be removed there. Credentials stay in Pi's local `auth.json` and are never returned to the browser.
|
|
46
47
|
|
|
47
48
|
If you enter `/web` manually in a Pi terminal, that terminal session stays synchronized with the browser. With the launcher, Pi runs in the background. Sessions opened in other workspaces use the Pi SDK and load that workspace's skills and project context. They load enabled Web plugin Pi entries explicitly while keeping other Pi extensions isolated from the parent bridge.
|
|
48
49
|
|
|
50
|
+
Chats run independently: switching workspaces or chats, or creating a new chat, leaves existing tasks running in the background. Returning to a chat restores its running output, history, and pending plugin interactions. Stop affects only the selected chat. Sessions remain in memory until the Pi service stops; stopping or restarting the service ends background tasks.
|
|
51
|
+
|
|
49
52
|
On startup, the app discovers workspaces from Pi's saved sessions, so conversations from other directories appear in the sidebar. Workspace records and attachments stay under Pi's existing `pi-web/` data directory. Removing a workspace from the sidebar does not delete its files or sessions; you can add it again manually.
|
|
50
53
|
|
|
51
54
|
## Develop locally
|
package/README.zh-CN.md
CHANGED
|
@@ -41,11 +41,14 @@ pi
|
|
|
41
41
|
- 查看当前对话,包括 Markdown 内容、流式输出、可展开的推理过程与工具调用、Token 用量,以及逐轮执行轨迹。
|
|
42
42
|
- 发送消息、暂停与继续运行、启动新的 Pi 会话,以及切换当前模型或思考级别。运行时右下角显示暂停;暂停后清空输入框即可继续,刷新或重新打开会话后仍可恢复。继续通过内部控制动作恢复原任务,不新增用户消息;模型会基于已有进度发起新请求,计划模式仍需重新审批。
|
|
43
43
|
- 浏览工作区和已保存的会话。环境支持时可通过系统目录选择器添加工作区;通过 SSH 使用时,也可使用内置目录浏览器。
|
|
44
|
+
- 通过对话右上角的常驻入口打开右侧工具栏,在「工作区文件」中逐层浏览当前会话的目录,点击文件打开只读预览。对话中的工作区相对路径及工作区内绝对路径链接也会直接打开右侧预览,外部网址仍在新窗口打开。支持带行号和高亮的代码、Markdown 预览与源码切换,以及 PNG/JPEG/GIF/WebP 图片与放大查看。面板可收起、调宽、分栏或全屏,并继续承载插件内容;切换聊天会保留各自的标签和目录展开状态(刷新网页后重置)。文件树和预览提供手动刷新,每层最多显示 1000 项,文本预览上限 512 KB / 10000 行、图片上限 8 MB;HTML/SVG 显示源码,其他二进制文件显示不支持提示。文件读取限制在当前会话工作区内,包括符号链接的真实目标。
|
|
44
45
|
- 通过选择、拖放或粘贴附加文件,最多 20 个,每个不超过 20 MB。图片会显示预览,并作为 Pi 图片内容发送。
|
|
45
46
|
- 在设置面板中管理外观、Pi 软件包、扩展、技能和模型。模型页可添加模型、编辑显示名称、上下文窗口、最大输出 token 数和输入类型,或恢复内置模型的默认参数;配置写入 Pi 的 `models.json`。网页登录会自动打开提供方授权页;当回调无法到达 Pi 时,仍可手动粘贴授权码。已保存的提供方认证可在这里移除。凭据保留在 Pi 本地的 `auth.json`,不会返回给浏览器。
|
|
46
47
|
|
|
47
48
|
如果通过 Pi 终端手动输入 `/web`,该终端会话会与浏览器保持同步。使用启动器时,Pi 在后台运行。在其他工作区打开的会话使用 Pi SDK,并加载该工作区的技能和项目上下文;已启用的 Web 插件 Pi 入口会显式加载,其他普通 Pi 扩展仍与主会话隔离。
|
|
48
49
|
|
|
50
|
+
每个聊天独立运行:切换工作区、切换聊天或新建聊天时,原任务会继续在后台执行。切回后会恢复正在输出的内容、历史记录和待处理的插件交互。“停止”只影响当前选中的聊天。会话实例会保留到 Pi 服务停止;停止或重启服务会结束后台任务。
|
|
51
|
+
|
|
49
52
|
启动时会从 Pi 已保存的会话中发现工作区,因此先前在其他目录使用 Pi 的会话也会出现在侧边栏。工作区记录和附件继续存放在 Pi 现有的 `pi-web/` 数据目录下。从侧边栏移除工作区不会删除其文件或会话;移除后如需再次显示,可以手动添加。
|
|
50
53
|
|
|
51
54
|
## 本地开发
|