pi-webapp 0.1.25 → 0.1.27
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 +104 -75
- package/README.zh-CN.md +104 -73
- package/assets/readme/README.md +30 -0
- package/assets/readme/architecture-en.svg +39 -0
- package/assets/readme/architecture-zh.svg +39 -0
- package/assets/readme/git-review.png +0 -0
- package/assets/readme/terminal.png +0 -0
- package/assets/readme/workbench.png +0 -0
- package/dist/extension.js +29 -29
- package/docs/desktop-testing.md +5 -4
- package/docs/desktop.md +48 -16
- package/package.json +3 -2
- package/web/dist/.vite/manifest.json +23 -23
- package/web/dist/assets/{app-DQXe2TPf.js → app-DGAHiflJ.js} +104 -104
- package/web/dist/assets/app.js +2 -2
- package/web/dist/assets/{graphql-DCmL4QvK.js → graphql-CM8br3eP.js} +1 -1
- package/web/dist/assets/{http-D1RjONju.js → http-Dl6CKe_K.js} +1 -1
- package/web/dist/assets/{php-D_vc4Tu2.js → php-Bk_hkz6U.js} +1 -1
- package/web/dist/assets/{plugin-Bjpcuu8G.js → plugin-BBQh2TKb.js} +1 -1
- package/web/dist/assets/{plugin-DNLljKtT.js → plugin-BPPaJeXM.js} +1 -1
- package/web/dist/assets/{plugin-Dt1cBQ6m.js → plugin-C7GyvZv1.js} +1 -1
- package/web/dist/assets/{rst-CXMoyibL.js → rst-L1NMAHRS.js} +1 -1
- package/web/dist/assets/{ruby-B2ZFKb7W.js → ruby-CT2Et3Md.js} +1 -1
- package/web/dist/assets/style.css +1 -1
- package/web/dist/assets/{svelte-Or6lhjBs.js → svelte-gqLIvd6P.js} +1 -1
- package/web/dist/assets/{vue-Di6p925N.js → vue-9dlEQDyH.js} +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="668" viewBox="0 0 1120 668" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">One workbench, multiple entry points</title>
|
|
3
|
+
<desc id="desc">The browser and Electron desktop share a React workbench. Both connect to a local Node host with HTTP actions and NDJSON events. The host orchestrates sessions, integrates Pi through an extension or SDK, and dispatches workspace plugin capabilities.</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M1 1 9 5 1 9" fill="none" stroke="#5368ed" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="1120" height="668" rx="16" fill="#f8fafc"/>
|
|
8
|
+
<g font-family="Arial, sans-serif" fill="#162033">
|
|
9
|
+
<text x="32" y="56" font-size="32" font-weight="700">One workbench. Multiple entry points.</text>
|
|
10
|
+
<text x="32" y="92" font-size="21" fill="#526078">A visual layer on Pi, not another agent engine.</text>
|
|
11
|
+
<g fill="none" stroke="#5368ed" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
12
|
+
<path d="M288 224 V256 H560 V286" marker-end="url(#arrow)"/>
|
|
13
|
+
<path d="M832 224 V256 H560"/>
|
|
14
|
+
<path d="M560 408 V440 H288 V470" marker-end="url(#arrow)"/>
|
|
15
|
+
<path d="M560 440 H832 V470" marker-end="url(#arrow)"/>
|
|
16
|
+
</g>
|
|
17
|
+
<g stroke="#dce2ee" stroke-width="2" fill="#ffffff">
|
|
18
|
+
<rect x="32" y="128" width="512" height="96" rx="16"/>
|
|
19
|
+
<rect x="576" y="128" width="512" height="96" rx="16"/>
|
|
20
|
+
<rect x="32" y="472" width="512" height="128" rx="16"/>
|
|
21
|
+
<rect x="576" y="472" width="512" height="128" rx="16"/>
|
|
22
|
+
</g>
|
|
23
|
+
<text x="64" y="168" font-size="25" font-weight="700">Browser</text>
|
|
24
|
+
<text x="64" y="202" font-size="21" fill="#526078">React workbench · npx or /web</text>
|
|
25
|
+
<text x="608" y="168" font-size="25" font-weight="700">Electron desktop</text>
|
|
26
|
+
<text x="608" y="202" font-size="21" fill="#526078">Same Web UI · bundled Node / Pi</text>
|
|
27
|
+
<rect x="224" y="288" width="672" height="120" rx="16" fill="#eef1ff" stroke="#5368ed" stroke-width="2"/>
|
|
28
|
+
<text x="560" y="326" font-size="27" font-weight="700" text-anchor="middle" fill="#3549c6">Local Node host</text>
|
|
29
|
+
<text x="560" y="360" font-size="21" text-anchor="middle">HTTP actions · NDJSON events · typed contracts</text>
|
|
30
|
+
<text x="560" y="390" font-size="20" text-anchor="middle" fill="#526078">Session lifecycle + plugin registry</text>
|
|
31
|
+
<text x="64" y="514" font-size="25" font-weight="700">Pi agent engine</text>
|
|
32
|
+
<text x="64" y="548" font-size="21" fill="#526078">Models · tools · session storage</text>
|
|
33
|
+
<text x="64" y="578" font-size="20" fill="#526078">Native extension / SDK integration</text>
|
|
34
|
+
<text x="608" y="514" font-size="25" font-weight="700">Workspace capabilities</text>
|
|
35
|
+
<text x="608" y="548" font-size="21" fill="#526078">Files · Terminal · Git · Web plugins</text>
|
|
36
|
+
<text x="608" y="578" font-size="20" fill="#526078">Scoped actions, panels, and resource cleanup</text>
|
|
37
|
+
<text x="560" y="642" font-size="20" text-anchor="middle" fill="#526078">Clear boundaries between UI, orchestration, and agent execution.</text>
|
|
38
|
+
</g>
|
|
39
|
+
</svg>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="668" viewBox="0 0 1120 668" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">一套工作台,多种使用入口</title>
|
|
3
|
+
<desc id="desc">浏览器与 Electron 桌面端复用 React 工作台,通过 HTTP 动作和 NDJSON 事件连接本地 Node 宿主。宿主管理会话生命周期,通过扩展或 SDK 对接 Pi,并分发工作区插件能力。</desc>
|
|
4
|
+
<defs>
|
|
5
|
+
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M1 1 9 5 1 9" fill="none" stroke="#5368ed" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="1120" height="668" rx="16" fill="#f8fafc"/>
|
|
8
|
+
<g font-family="Arial, PingFang SC, Microsoft YaHei, sans-serif" fill="#162033">
|
|
9
|
+
<text x="32" y="56" font-size="32" font-weight="700">一套工作台,多种使用入口。</text>
|
|
10
|
+
<text x="32" y="92" font-size="21" fill="#526078">增强 Pi 的可视化体验,而不是再造一套 Agent 引擎。</text>
|
|
11
|
+
<g fill="none" stroke="#5368ed" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
12
|
+
<path d="M288 224 V256 H560 V286" marker-end="url(#arrow)"/>
|
|
13
|
+
<path d="M832 224 V256 H560"/>
|
|
14
|
+
<path d="M560 408 V440 H288 V470" marker-end="url(#arrow)"/>
|
|
15
|
+
<path d="M560 440 H832 V470" marker-end="url(#arrow)"/>
|
|
16
|
+
</g>
|
|
17
|
+
<g stroke="#dce2ee" stroke-width="2" fill="#ffffff">
|
|
18
|
+
<rect x="32" y="128" width="512" height="96" rx="16"/>
|
|
19
|
+
<rect x="576" y="128" width="512" height="96" rx="16"/>
|
|
20
|
+
<rect x="32" y="472" width="512" height="128" rx="16"/>
|
|
21
|
+
<rect x="576" y="472" width="512" height="128" rx="16"/>
|
|
22
|
+
</g>
|
|
23
|
+
<text x="64" y="168" font-size="25" font-weight="700">浏览器</text>
|
|
24
|
+
<text x="64" y="202" font-size="21" fill="#526078">React 工作台 · npx 或 /web 打开</text>
|
|
25
|
+
<text x="608" y="168" font-size="25" font-weight="700">Electron 桌面端</text>
|
|
26
|
+
<text x="608" y="202" font-size="21" fill="#526078">复用 Web UI · 自带 Node / Pi</text>
|
|
27
|
+
<rect x="224" y="288" width="672" height="120" rx="16" fill="#eef1ff" stroke="#5368ed" stroke-width="2"/>
|
|
28
|
+
<text x="560" y="326" font-size="27" font-weight="700" text-anchor="middle" fill="#3549c6">本地 Node 宿主</text>
|
|
29
|
+
<text x="560" y="360" font-size="21" text-anchor="middle">HTTP 动作 · NDJSON 事件 · 类型化契约</text>
|
|
30
|
+
<text x="560" y="390" font-size="20" text-anchor="middle" fill="#526078">会话生命周期管理 + 插件注册表</text>
|
|
31
|
+
<text x="64" y="514" font-size="25" font-weight="700">Pi Agent 引擎</text>
|
|
32
|
+
<text x="64" y="548" font-size="21" fill="#526078">模型执行 · 工具调用 · 会话存储</text>
|
|
33
|
+
<text x="64" y="578" font-size="20" fill="#526078">原生扩展 / SDK 接入</text>
|
|
34
|
+
<text x="608" y="514" font-size="25" font-weight="700">工作区能力</text>
|
|
35
|
+
<text x="608" y="548" font-size="21" fill="#526078">文件 · 终端 · Git · Web 插件</text>
|
|
36
|
+
<text x="608" y="578" font-size="20" fill="#526078">动作分发、面板贡献与资源清理</text>
|
|
37
|
+
<text x="560" y="642" font-size="20" text-anchor="middle" fill="#526078">界面、宿主编排与 Agent 执行,各有清晰的职责边界。</text>
|
|
38
|
+
</g>
|
|
39
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|